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

2014/4/30

HealthBar not losing health.

1
2
danpost danpost

2014/5/1

#
Well the error is occurring in your Player class, in the 'playerCord' method, at line 173 in the class. So, it sounds like your assessment may be correct.
Than4tos Than4tos

2014/5/1

#
that's why i asked if the method to check if an actor is still in the world was the one i poster abit back.
danpost danpost

2014/5/1

#
Oh. You did not specify that it was the actor being acted on. You were referring to the player returned by the 'getWorld().getObjects()... ' line; but, how was I to know the actor was using it to find itself in the world. You can simply use:
if (getWorld() != null)
to test if the actor is in the world.
Than4tos Than4tos

2014/5/1

#
Cheers m8 rly thx alot for the help it's working did not know you could chek it like that hmm nice. just made a quick run through the game and it's working looks like it's done now for the report the boring part. Again thx alot that was the last bit and it was driving me crazy
You need to login to post a reply.
1
2