Hey thanks for the reply sorry I haven't replied sooner I didn't realise
Thats great advice thanks for that, I've been able to add a few items for restoring health. I followed the demo in GE for counting objects. So I have a health restore item that when you collide with it it shows in a count. from this count I would like to be able to left click and depending on what the hp value for that item it will increment the players hp count. Forgive me if this doesn't make any sense.
Here is my code -
I have a actor variable called hp
player actorplayer - create actor - script
- Code: Select all
hp=100;
player - collision - any side of enemy - script
- Code: Select all
hp-=1;
if(hp<=0)
{
DestroyActor("Event Actor");
}
hpCount actorhpCount - draw actor - script
- Code: Select all
textNumber = player.hp;
Any ideas on how to get this to work?
Thanks