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

2022/9/1

I have a problem

MadRay05 MadRay05

2022/9/1

#
I have a little space game with a rocket that tries not to touch asteroids. now, that worked well, the rocket touches the asteroid, the game restarts. The problem is, I made another object, a little red dot and I want, when Rocket touches it, to give it something (movement speed +1, for example). I tried everything, nothing works, didn't found something on internet neither. It's my first day, what to do? Also, the ball does not disappear when I touch it
danpost danpost

2022/9/1

#
MadRay05 wrote...
I have a little space game with a rocket that tries not to touch asteroids. now, that worked well, the rocket touches the asteroid, the game restarts. The problem is, I made another object, a little red dot and I want, when Rocket touches it, to give it something (movement speed +1, for example). I tried everything, nothing works, didn't found something on internet neither. It's my first day, what to do? Also, the ball does not disappear when I touch it
You will need to show some attempted codes on having, or trying to have, it function as you want. Best is to show the entire class (at minimum).
You need to login to post a reply.