Okay. I'm making this real cool 2D side-scroller. It's gonna be my first full game, but I'm using my own original graphics, everything. Now, theres no AI in the game, so the baddies walk around with Path Movement and you have to avoid them, right? Well today, I opened the file and began to add more to the game, and guess what? Somehow, now the baddies CANT hurt you wen your not moving. When the main character's "STOPPED" animation is playing, hes invincible to attack. Ive been working on this game for a long time and I need some help. Any suggestions.
You're most likely going to track down the problem and answer inside your events that have to do with the player getting hit and taking damage. Can you list what events you're using the execute the player getting hit and taking damage?
EVENT EXAMPLE ONE: Player collides with enemy AND Player's PUNCH animation is playing: enemy-destroy
REASON FOR EVENT: that event makes it so that when the player punches the enemy the enemy dies.
EVENT EXAMPLE TWO: Player collides with enemy AND Player's STOPPED animation is playing: player-destroy
REASON FOR EVENT: that event makes it so that when the player collides with the enemy and he is stopped, he dies.
Does that help? and if so, could someone tell me what to do?
may i also add, the condition "Animation stopped is playing" just works while the animation is, well, playing. So, if that animation isn't set to loop (in the animation editor), then the game thinks it's already over and the event doesn't happen
It was checking the user animation in the event of the player getting hit? Well, unless the whole player character is a weapon when it attacks, then I wouldn't do that. Instead, when the player attacks create an invisible blip for the moment of the attack around the attacking area and then have that blip destroyed when the attack moment is over. This would create a much more realistic likeness of a player attacking enemy, and it would solve any future problems of "If player animation is not attack and monster and player collide..."