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

2012/6/4

Mobius

solo1512 solo1512

2012/6/4

#
Guys this is solo1512. I just published a new game called Mobius. It has some glitches. Whenever an enemy dies it sends a terminal window as well as one when Knuckles dies. I don't understand whats wrong with my code. Download the scenario and respond please.
erdelf erdelf

2012/6/4

#
Was not sure where to answere, here or as comment, I will make it here, to the error in line 57, you have to check actor here to. so instead of
if((getX() - Knuckles.getX()) >= 10)
you should use this
if((getX() - Knuckles.getX())>= -10 && actor != null)
In line 33 you have to change the act method in all enemies, you have to set isKnucklesThere() first and then die()
solo1512 solo1512

2012/6/4

#
I tried that, but then Shadow wouldn't move. I didn't try the others because they all have the same code.
solo1512 solo1512

2012/6/4

#
Oh! Sorry! I didn't see the first isKnucklesThere() part.
solo1512 solo1512

2012/6/4

#
Thanks erdelf! I only needed the switching of the methods in line 33.
You need to login to post a reply.