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

2022/6/5

Need help with making a jump'n'run game

flamme001 flamme001

2022/6/5

#
So I want to make a jump and run game with a scrolling world and I'm new to greenfoot. I've already made the scrolling world, my problem is just that the platforms, on which the character is supposed to run, move with the character instead of just staying where they are. Same with the enemy I've created. I need to fill the scrolling world with different platforms and enemies but they need to stay where I placed them. Is that even possible? If yes, how can I get them to do that?
danpost danpost

2022/6/6

#
flamme001 wrote...
I've already made the scrolling world, my problem is just that the platforms, on which the character is supposed to run, move with the character instead of just staying where they are. Same with the enemy I've created. I need to fill the scrolling world with different platforms and enemies but they need to stay where I placed them. Is that even possible? If yes, how can I get them to do that?
The best approach is to code everything normally without the scrolling. You can implement the scrolling, which should move everything in your world together, maintaining the proper camera view, afterwards.
You need to login to post a reply.