Here my capx, it's just an example.
Ok, here is what i wanna do:
The Player (green box) passes by enemy (blue box) > nothing happens
The Player (green box) jumps onto the enemy (blue box) > the enemy plays the blinking animation
The Player (green box) standing on the back of the enemy (blue box) can move around > the enemy still plays the blinking animation
The Player (green box) , still on the back of the enemy (blue box) can jump, but while in the air, the blinking animation of the enemy goes back to idle
>as he lands back on the enemys back, it starts blinking again
If the player jumps off the back, the enemy animation goes back to idle.
filedropper.com/enemyride