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

2017/9/28

Making an actor move and repeat itself

R0mane R0mane

2017/9/28

#
Hello, I am trying to make a "jump and run" type of game. For the ground, I set it as an actor, and I am making it move to the left, but I was wondering if there is any way I can make it repeat itself, so the ground doesn't come to an end at the edge of the image. Can somebody please help me ? Thank you in advance
danpost danpost

2017/9/28

#
Create two or more ground actors and place them side-by-side -- then have them leap-frog over each other when they are not visible (when outside the viewing area. BTW, you will need to unbound the world (see documentation on World class constructors).
You need to login to post a reply.