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

2012/5/13

Scrolling with 2 lists, one works, other doesnt.

matt.milan matt.milan

2012/5/13

#
full scenario: http://www.greenfoot.org/scenarios/5137 in the world class (black_background) there is a scroll() method. it builds 2 lists and attempts to scroll them all. sprites and obstacles if i comment out sprites, the obstacles work fine, the world scrolls and so do the platforms. however, all of the other sprites stay in place. if i try to load the sprites list, it gives me an actor not in world error (actor.getx) trying to fi gure out what's wrong with my code to make sprites not work...
danpost danpost

2012/5/13

#
You might want to include the source code, if you want any help.
matt.milan matt.milan

2012/5/13

#
excellent point. posted
danpost danpost

2012/5/14

#
I added a 'bigRefresh();' as the first statement in the scroll() method, and it seemed to work OK.
You need to login to post a reply.