Health points do not decrease when destroying enemies

I’m confused when I create an event to kill enemies by jumping; my health points keep decreasing. How can I anticipate this so that when killing enemies by jumping, my health points don’t decrease?
HP berkurang

Hi, there is a platformer example in which you can also kill the enemy by jumping on it Platformer - a game example from the GDevelop game making app | GDevelop

This is how the damage is done to the enemy:

As you see you need to differentiate your events more because at the moment colliding with the enemy will reduce your health points, no matter from which direction the collision happens. Instead of jumping you can use falling as an additional condition.

I think it’s because is says “Score: += 10” I think it needs to be “Score: + 10” I think I’ve had this problem in the past.

@Ourf : No, Score: += 10 is just a short way of writing Score = Score + 10. It adds 10 to the value of the variable Score and assigns the new value to the Score variable. The problem Gansu has is with the logic of their events.

Oh sorry I don’t know much about variables :confused: