Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
hi, all i was wondering if anyone could give me a way of like wen a key pressed add health to your player, or create a pick up of health in my game but i need it to add health to player any thoughts??? |
||||
|
Use the global health variable... For example on proximity with a health pickup... Set or change variable "hashtagplayer.health" (here hashtag is the hash symbol and player is the name of your scenenode whose health you want to recover) set the value to 100 or use add and add by whatever value you want like 20,50 etc... Whatever value you want... You can also use the same method with on key pressed instead of the proximity behaviour.. Note:- the player must have behaviour with health and ai attached to it.. |
|