This site requires JavaScript, please enable it in your browser!
Greenfoot back
iPrototype
iPrototype wrote ...

2014/12/21

scrolling world

iPrototype iPrototype

2014/12/21

#
I want to make a world scroll down infinitely. Some objects need to scroll down with the world as well. I want the main actor to stay at the position I set him, so it looks like the main actor actually moves up. I have no idea how to implement this, could someone help me make my own code?
danpost danpost

2014/12/21

#
Program everything as you would normally (without the scrolling); however, knowing that scrolling may move the actors downward, add code to deal with them leaving world bounds (atWorldEdge code). Then when you are done with that, you can add the scrolling code into your world subclass. Post the code to your world subclass here (use the 'code' link below the reply box for inserting code into your posts) for instruction on implementing a scrolling engine.
iPrototype iPrototype

2014/12/21

#
Alright! Thank you for your reply. I dont have much time on my hands these days. Ill reply with the code this week. Thanks for your help :)
I can send you my project which includes a camera if you want to...
Super_Hippo Super_Hippo

2014/12/22

#
Is it supposed to be something simple like this game? Then you wouldn't need a scrolling world.
iPrototype iPrototype

2014/12/23

#
Ill look into that game tomorrow. Thanks for the reply guys
You need to login to post a reply.