Programming 2D Games

The official forum for "Programming 2D Games" the book by: Charles Kelly

It is currently Sat Jul 20, 2019 2:36 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed May 01, 2019 6:14 pm 
Offline

Joined: Wed May 01, 2019 5:55 pm
Posts: 1
I'm having trouble figuring out where exactly the code changing the scroll speed should be attached to solve the challenge - I've got a second layer of clouds rendering find, but where in the code should I code in change in scrolling speed - I know it should be in the update function, but attached to what?


Top
 Profile  
Reply with quote  
PostPosted: Thu May 02, 2019 6:49 pm 
Offline
Site Admin
User avatar

Joined: Sat Jan 28, 2012 4:36 pm
Posts: 553
Basically duplicate the mapX stuff in FlowerPower::update() and FlowerPower::render().

_________________
Professor Kelly


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group