1. How do I get my player to have full health when he re spawns after being killed (Yes I know this is a very simple fix but i just spent the last few hours working on a npc attack and respawn code)
2. How do i set up a code for health regen if the player is not fighting
3. How do I factor in defense when facing enemys
|
|||||||||||||||||||||||||||
2. You'd have a timer that you spawn when the player attacks. WHILE the timer is active, you'd count down, after it's done, you start to regenerate
3. You have to code it to be considered in the attack code.