Hurt if actor is moving...
Alright, so, I have a rather simple task with many specifics I haven't been able to figure out.
I have the "player" or called the "heart" in this game. When the player overlaps/collides with an orange projectile and the player is NOT moving, the player's health is set down. That's it simply. I can manage the health.
However, what I can't find out is the recognition. I have walls alongside the area in which the player is. Again, as stated, I need to make the player be hurt when they collide with a projectile while NOT moving.
Pinpointed, the issue is that I do NOT want moving against the walls to count as moving. For instance, if the player is on the left wall and holding in the left arrow key (to move, but obviously cannot move left because there is a wall there), they should NOT get hurt.
Any help? Thanks for any responses in advance!