I want to be able to jump and attack in mid air. Here's what I have so far. If I need to upload the game here, please let me know. Thank you.
https://1drv.ms/u/s!AnjtyjMt2XGHh4A-k7NGX3oqfbIS4w
Do you have basic controls set up for this?
Arrow keys to move, up to jump, down to jump down from building perches, A to attack.
Ok, all you have to do is check if the player is jumping and attacking.
The player can jump. The player can attack. The player just can't attack while in mid air from a jump. I've been trying like hell to get it to do so. I've attached a short video to show you.
1drv.ms/u/s!AnjtyjMt2XGHh_gUbTKQJlpwfxpvOQ
Im guessing you're using the platform behavior? There is a condition for it. 'Is Jumping' and 'Is Falling'.
How would I set that up?
Would it be like this?:
Develop games in your browser. Powerful, performant & highly capable.
Is 'W' your attack button?
Yes it is.
You should combine those. So that its 'Is Jumping' or 'Is falling'.
I think it's working! Thank you for your help! :D
Just one more quick question--is there a way I could get the character to pause in midair while performing the jump attack. You, he attacks and stops falling, and when the animation is done he continues falling?
Thank you!!