Hi,
i got the script so when the enemy and player collide the player loses 1 health however whenever i walk past the enemy, my health goes down so fast , i was wondering if there is a fix
local function player_damage(self)
self.player_health = self.player_health - 1
if self.player_health <=0 then
game_over(self)
print("OUCH! player damage == ",self.player_health)
end
This happens so fast