I have followed the FAQ that describes how to add HP to my player but I can't get it to work. COuld somebody let me no if I am on the right track.
I tried to add a actor variable called Hp, I done this by going to script, global code, typed HP;, I clicked variables, add, called it HP, changed global to actor variable, and finally add.
I then selected my player, add, create actor, script editor, and typed HP=3;
Then I selected my enemy, add, collision, any side and player, add action, script editor, then typed
HP--;
DestroyActor("Collide Actor");
If(HP==0)
{
DestroyActor("Event Actor");
}
If any can see what I have done wrong that would be great
Thanks