|Attention||Topic was automatically imported from the old Question2Answer platform.|
For my enemy code:
var max_hp= 10
If current_hp <=0
My player code:
The end result is that the first damage is only counted like 10-5 = 5 and the current_hp will always stay on 5
I have a question about this method you use, can you enlighten me how exactly you communicated the damage from the player to the enemy?
You only used a signal to check in the body entered the area… and a group for checking if the body was the enemy… did the body.onHit go through the group?
I didn’t get that part.
Parescop | 2021-04-01 04:19