on the 'Create Actor' of my health meter I place the code:
- Code: Select all
animpos=nframes;
and change the animation direction to stopped.
Then, on the collision with my enemy, I put the code:
- Code: Select all
Health.animpos=-1;
if ((Health.animpos-1)<0)
{
DestroyActor ("Player");
}
This WOULD be fine except that when I collide, it kills him automatically. What am I doing wrong?