Making an enemy slide and have a different get hit

esn23

Active member
So let me be more direct about this question.
Here are the sprites
testcopy_zps6d9670c5.png

I need to make him slide its a trip attack he should slide on the last frame
Also the get hit on the last frame should only happen when he is crouching.. Im almost done coding this enemy but am having problems with this. What is the code to make him slide and the code or scipt i need for the extra get hit.. Its not for the playable char its only when he is crouching
 
The most simple way is to set an entity variable in enemy's slide animation. This variable is later checked on enemy's PAIN animation. If it is set, change to "crouch pain" animation.
 
Bloodbane said:
The most simple way is to set an entity variable in enemy's slide animation. This variable is later checked on enemy's PAIN animation. If it is set, change to "crouch pain" animation.

it would be way easier if he sets a counterrange
 
Back
Top Bottom