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

2014/3/15

Scrolling world help

Jonche Jonche

2014/3/15

#
Hello, I just need some ideas on how to make the objects dissapear when they are on the edge of my world, but keep them in memory so if I go to the place they are, they reappear My scrolling world is actually the ground moving beneath my main character. The monsters and items that are present in the world just stick to the ground that moves. Thanks in advance for some interesting answers !
Pointifix Pointifix

2014/3/15

#
i used a array the save positions of my objects, so if the are at the edge they will be deleted but are still in memory in my array.
Pointifix Pointifix

2014/3/15

#
look at my newest upload maybe this helps you
danpost danpost

2014/3/15

#
There are two constructors in the World class. Maybe the one you guys are not using might be of some help. Refer to the documentation.
Jonche Jonche

2014/3/15

#
Oh, thanks danpost, never seen that actually lol
You need to login to post a reply.