News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Air Attack Problem

Started by Nnaajj, March 25, 2010, 11:12:02 AM

Previous topic - Next topic

Nnaajj

I got a little problem. I'm trying to make an air attack which can only be used when you have reached a high point in the jump. I've tried using some triggeralls saying you need pos y to equal 8 or higher. But, it always just uses the normal air attack and not the one I'm trying to code.  :-\

Could anyone help?

Oh and here's my code:

;---------------------------------------------------------------------------
; JumpAttackA
[State -1, JumpAttackA]
type = ChangeState
value = 600
triggerall = pos y < 8
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
; JumpAttackB
[State -1, JumpAttackB]
type = ChangeState
value = 610
triggerall = pos y >= 8
triggerall = command = "x"
trigger1 = statetype = A
Quote from: Luis Alejandro on July 27, 2010, 07:46:45 PM
Quote from: RaiN on July 27, 2010, 07:44:57 PM
Kinda strange but I woke up today and her hand was on my ass cheek
I won't suspect anything though I'll take it she was sleeping and didn't notice
you should have flipped over slowly

Rajaa Retired

-8 means above ground level: 8 mean below ground level. Those are pixels, by the way, so it won't be that much if you use 8/-8. Try -30 or -40 or something. It's just like velocity y. -8 is up, 8 is down.

Nnaajj

Quote from: Rajaa on March 25, 2010, 02:02:13 PM
-8 means above ground level: 8 mean below ground level. Those are pixels, by the way, so it won't be that much if you use 8/-8. Try -30 or -40 or something. It's just like velocity y. -8 is up, 8 is down.
:omg: Can't believe I forgot about that. Thanks Rajaa.
Quote from: Luis Alejandro on July 27, 2010, 07:46:45 PM
Quote from: RaiN on July 27, 2010, 07:44:57 PM
Kinda strange but I woke up today and her hand was on my ass cheek
I won't suspect anything though I'll take it she was sleeping and didn't notice
you should have flipped over slowly