remove the act method in the food class and add this to the eat method of the enemy and the player:
getWorld().removeObject(food);
put it at the end of the if call.
here, I worked an half hour on it and I made it; I worked with the last update you both uploaded and this is the result. put these files in the scenario folder
Darkness.java: https://docs.google.com/open?id=0B5KmnySxat4WVVhEZFdpOFhNQmM
ScrollingBg2.java: https://docs.google.com/open?id=0B5KmnySxat4WWUtWWGYyaHl1TFE
Worldy.java: https://docs.google.com/open?id=0B5KmnySxat4WMWpISTlsakFZa1E
2012/10/27
Snake Project
2012/10/26
Demon time
2012/10/26
Demon time
2012/10/25
onepiece (treasure)
2012/10/25
Snake Project
2012/10/23
Project
2012/10/22
Demon time
2012/10/22
Demon time
2012/10/21
Demon time