For school we are currently programming in little groups games and our game is a Jump 'n' Run.
But now there is a strange bug in the project. I can play the first run normally, but if I reset the World (just using the "reset" button below the world) the second run isn't working correctly.
The objects are moving automaticly, if press "right" and have reached the right position.
To do that I have a initialized a variabel to count, how far I already run.
It can be, that this variable is not reseted by pressing the "reset" button. If i compile the project again, I can do a normal run,but after this it isn't working again.
Has someone an idea, what else could be the matter or how I can fix my problem? (I also wrote a method that resets the variabel once in the first act, so it's probable, that the error has an other source... )
I don't know how to add a Greenfoot-project here, so I zipped it and you can download it here:
https://docs.google.com/file/d/0B1IYv183t8YDTW1yMGpWQUlmbk0/edit?usp=sharing
(just press "CTRL" + "S" to download the whole zip-file)
Everything is written in german and you also may answer in german, I just wrote this entry in english, to be sure that everyone understands me :)
If you have questions to the current code (because the notes are in german) just ask me.
nearly everything of the programm runs from the world ("Springfield") and the main actor ("pieman")
schetefan24