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

2017/5/18

How to make an actor stay always in the centre of the scene

Hi, I'd like to have my actor always in the centre (x-coordinate) of the screen. The actor can be moved with the arrow keys and the background moves as well What do I have to do to make the actor always be in the centre of the screen Thanks for help
danpost danpost

2017/5/18

#
Use the world act method to move the player back to the center and move everything else the same amount in the same direction including the background image.
You need to login to post a reply.