collapse

Author Topic: Wall Jump Help  (Read 286 times)

0 Members and 2 Guests are viewing this topic.

TomBewley

  • Guest
Wall Jump Help
« on: May 24, 2008, 03:47:45 PM »
Heya all! I've just started to play with coding for Ada and I need a bit of help.

I've got her to jump off the wall, but I'm unable to get her to change animation when on the wall itself.

Here's what I've got in the CMD file:

; Wall Jump
[State -1: ChangeState]
type = ChangeState
value = 40
triggerall = (StateType = A) && (Ctrl) && (Pos Y < -30)
trigger1 = ((command = "holdfwd") && (Vel X <= 0) && (backedgebodydist <= 10) && (backedgebodydist > -10))
trigger2 = ((command = "holdback") && (Vel X >= 0) && (frontedgebodydist <= 10) && (frontedgebodydist > -10))
persistent = 0

[State -1: StateTypeSet]
type = StateTypeSet
trigger1 = (StateNo = 40) && (Pos Y < 0)
statetype = A

[State -1: ChangeAnim]
type = ChangeAnim
trigger1 = (StateNo = 40) && (Pos Y < 0) && (!Time)
value = 48

Obviously animation 48 is what I want her to be when on the wall.

Can anybody help me?

 :)



Offline Kong

  • IMT Content Architect
  • *
  • Posts: 453
  • Last Login:July 01, 2016, 03:41:01 AM
    • Mugen
    • Email
Re: Wall Jump Help
« Reply #1 on: May 24, 2008, 06:24:34 PM »
use another state


state 40 is for jump start, a common state.

change the state number if you want


in the cmd file.
;---------------------------------------------------------------------------
[State -1, Wall Jump]
type = ChangeState
value = 7730
triggerall = !var(59)
triggerall = StateType = A
triggerall = Ctrl
trigger1 = FrontEdgeBodyDist <= 3
trigger1 = Vel X > 0
trigger1 = command = "holdback"
trigger2 = BackEdgeBodyDist <= 3
trigger2 = Vel X < 0
trigger2 = command = "holdfwd"


Put in the cns
;---------------------------------------------------------------------------
; Wall Jump
[Statedef 7730]
type = A
movetype = I
physics = N
anim = 48
velset = -2*Vel X,-4
ctrl = 0


[State 7730]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,1

[State 7730]
type = Turn
trigger1 = FrontEdgeBodyDist <= 3

[State 7730]
type = PlaySnd
trigger1 = time = 0
value = 7730, 0

[State 7730]
type = ChangeState
trigger1 = AnimTime = 0
value = 7731



;---------------------------------------------------------------------------
; Wall Jump End
[Statedef 7731]
type = A
movetype = I
physics = A
;velset = 0, 0
ctrl = 0



[State 7731, 3]
type = ChangeAnim
trigger1 = Time = 0
value = 44




TomBewley

  • Guest
Re: Wall Jump Help
« Reply #2 on: May 24, 2008, 06:43:32 PM »
Thanks very much Kong!! It's working now

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by ExShadow
[November 02, 2024, 04:54:41 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]


Rooftop Skyline(1.1 Only/AIGS) by Vegaz by LightFlare
[October 21, 2024, 12:13:37 PM]


Secluded Base(1.1 Only/AIGS) by Vegaz by LightFlare
[October 17, 2024, 01:21:06 PM]


Ultimate Balrog + stage by ELECTRO
[October 17, 2024, 05:40:31 AM]


Classic VS : Balrog by ELECTRO
[October 08, 2024, 04:35:53 PM]

* IMT Calendar

November 2024
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 [14] 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

SimplePortal 2.3.5 © 2008-2012, SimplePortal