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

2021/9/6

Really Need Help!

Sabszii Sabszii

2021/9/6

#
how can i answer these two questions in the world class prepare method? 1. Modify your game so that when the Player touches a Food object, the Food object is removed (you may have this already), and 2 points are added to the score. 2. Modify your game so that when the Player touches an Enemy object, the Enemy object is removed, and 10 points are deducted from the score.
danpost danpost

2021/9/6

#
Sabszii wrote...
how can i answer these two questions in the world class prepare method? << Questions Omitted >>
The questions cannot be "answered" in the world class prepare method. They are done in the Player class act method.
Sabszii Sabszii

2021/9/7

#
okay thanks, so how can i answer these two questions?
danpost danpost

2021/9/7

#
Sabszii wrote...
okay thanks, so how can i answer these two questions?
What do you think the code would look like? What have you tried?
You need to login to post a reply.