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

2011/9/19

new greenfoot broke scenario?

ImFerocious ImFerocious

2011/9/19

#
I made my SpawnLings game in the previous version of Greenfoot and it worked no problem...player collides with token it adds point for player then "moves" token to another location...but then after installing the new 2.1.1v of Greenfoot, after collecting the first token once the token moves something horrible happens...it no longer says the player is ever colliding with the token even though they may be direction on top of it...i haven't made any changes to my scenario but now it no longer works...any reason why?
davmac davmac

2011/9/19

#
There's a collision checking bug in Greenfoot 2.1.1 that occurs when you remove an object from the world and re-add it at a different location. Is that what you're doing? We plan to do another release shortly to fix this bug. If you upload your scenario to the gallery, it should work ok on the gallery even if it doesn't work properly when run from within Greenfoot.
Herman Herman

2011/9/19

#
I just uploaded my first scenario Hi-Q again. On the gallery it works as I intented, and it doesn't when run from within Greenfoot. I also remove an object from the world, but the difference from the above post is: I re-add it at the same location.
davmac davmac

2011/9/20

#
Ok; I haven't been able to reproduce the problem without adding the actor to a different location. But if it works on the gallery, then the fix works, and the fix will be incorporated into the next version of Greenfoot.
ImFerocious ImFerocious

2011/9/20

#
Yes that's exactly what i does. The object is removed and added again but in a new location.
jbrucker jbrucker

2011/9/23

#
Many other scenarios experience a similar problem Marbles is one. Problem seems to come from getIntersectingObjects( Class ) Since this breaks a lot of scenarios (and disrupt teaching), how about posting it on greenfoot.org in the notice for "Greenfoot 2.1.1 is now avialable".
colorfulteen colorfulteen

2011/9/23

#
Couldn't problems be avoided by a different, maybe better approach regarding backward or downward compatibilaty?
davmac davmac

2011/9/23

#
jbrucker - Greenfoot 2.1.2 has just been released, and it should resolve the problem. colorfulteen - Greenfoot is supposed to be backward compatible, but sometimes bugs find their way in to the code. It's not intentional. Apologies for the inconvenience!
jbrucker jbrucker

2011/9/24

#
Greenfoot 2.1.2 does fix the problem. Thanks. I liked the old installer for windows better, though. the msi forced me to uninstall greenfoot 2.1.0 before installing 2.1.2. The old greenfoot and bluej installer would cleanly overwrite a previous version in same install dir.
You need to login to post a reply.