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

2014/1/28

Getting My Platformer to Scroll?

askgriff askgriff

2014/1/28

#
I've asked this before, but now that my platformer is getting more solid, I think it would be cool to enable scrolling in some way -- either horizontally or vertically. Does anybody (Danpost or Bourne?) have any ideas? When I do manage to get it to scroll, the blocks all pile up in one vertical line -- even if I scroll back. The scenario is http://www.greenfoot.org/scenarios/10593 Thanks for any help.
danpost danpost

2014/1/28

#
You will get that effect if your world is bounded. That is, you did not use the World constructor that has a Boolean argument that determines if actors are to be bound to the world window or not. Refer to the World class API and look at the constructors. In the meantime, I will look at the scenario itself.
askgriff askgriff

2014/1/28

#
Thank you, Danpost. You're the best.
danpost danpost

2014/1/28

#
I did not see any code for scrolling within the project.
You need to login to post a reply.