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

2022/5/13

hi, I need help

MATE-USER67 MATE-USER67

2022/5/13

#
I need a code that when a character touches a potion he can increase his speed and another that doubles the score when you pick up a coin THANKS advance
danpost danpost

2022/5/14

#
MATE-USER67 wrote...
I need a code that when a character touches a potion he can increase his speed and another that doubles the score when you pick up a coin THANKS advance
Add instance fields to the class of the character to signify that (1) potion was touched; and (2) coin was picked up. Use them to control the behavior of the character in the act method. Attempt some codes and if you run into trouble, show codes attempted for assistance.
You need to login to post a reply.