collapse

Author Topic: Air Dash Problem  (Read 866 times)

0 Members and 1 Guest are viewing this topic.

Offline Retire4ever!!!

  • Initiate
  • **
  • Posts: 127
  • Last Login:June 09, 2010, 11:06:45 PM
Air Dash Problem
« on: August 11, 2008, 10:37:29 AM »
Hi, I am going to experiment the air dash like how reza did to his mvc2terry, the air dash. As I implement his code to my character, it works but the animation in my character air dash end looks really weird, the first animation frame does well which is the air dash frame. When he does the air dash end frame, my character jump up and land down the ground like this:

First animation frame: Air Dash Forward


Second animation Frame: Air Dash Forward End


Here is my character coding:
Air file:
Code: [Select]
; Air Dash Forward
[Begin Action 907]
Clsn2: 2
 Clsn2[0] =  4,-94, 22,-75
 Clsn2[1] = -21,-85, 21,-11
102, 0, 0, 0, 5
Clsn2: 2
 Clsn2[0] =  0,-96, 18,-77
 Clsn2[1] = -21,-86, 22,-10
102, 1, 0, 0, 5
Clsn2: 2
 Clsn2[0] = -2,-95, 16,-76
 Clsn2[1] = -21,-86, 22, 0
102, 2, 0, 0, -1

; Air Dash Forward End
[Begin Action 908]
Clsn2: 2
 Clsn2[0] = -3,-114, 15,-95
 Clsn2[1] = -19,-103, 30,-47
44, 0, 0, 0, 4
Clsn2: 2
 Clsn2[0] = -6,-115, 12,-96
 Clsn2[1] = -19,-103, 30,-47
44, 1, 0, 0, 4
Clsn2: 2
 Clsn2[0] = -6,-116, 12,-97
 Clsn2[1] = -19,-103, 26,-37
44, 2, 0, 0, 4
Clsn2: 2
 Clsn2[0] = -7,-117, 11,-98
 Clsn2[1] = -20,-105, 21,-33
44, 3, 0, 0, -1

cmd:
Code: [Select]
[State -1, Air Dash Forward]
type = ChangeState
value = 905
triggerall = command = "FF"
trigger1 = (statetype = A) && ctrl && (stateno = [50,57])

cns:
Code: [Select]
; Air Dash Forward
[Statedef 905]
type   = A
physics = N
velset = 0,0
anim = 907
ctrl = 0

[State 905, VarSet]
type = VarSet
trigger1 = time = 0
v = 12
value = 0
ignorehitpause = 1

[State 905, Explod]
type = Explod
trigger1 = (time%4) = 1
ID = 6005
anim = 6005
postype = p1
facing = 1
vfacing = 1
pos = -19,-63
bindtime = 1
removetime = 12
ontop = 1
vel = 0,0
ownpal = 1
random = 19,63
sprpriority = 3
scale = .4,.4
supermovetime = 999
pausemovetime = 999
removeongethit = 1
ignorehitpause = 1
persistent = 1

[State 905, PlaySnd]
type = PlaySnd
trigger1 = time = 0
value = S100,0
volume = 255
ignorehitpause = 1
persistent = 1

[State 905, PlaySnd]
type = PlaySnd
trigger1 = time = 0
value = S200,10
volume = 255
ignorehitpause = 1
persistent = 1

[State 905, VelSet]
type = VelSet
trigger1 = time = 0
x = 9

[State 905, VarAdd]
type = VarAdd
Trigger1 = Time > 0
Trigger1 = var(12) >= 0
var(12) = 1

[State 905, ChangeState]
type = ChangeState
Trigger1 = var(12) >= 20
value = 906
ctrl = 1

;-----------------------------------------------------------------------------
; Air Dash Forward End
[Statedef 906]
type   = A
physics = A
Anim = 908

[State 906, VarSet]
type = VarSet
trigger1 = time = 0
v = 12
value = 0
ignorehitpause = 1

[State 906, VelSet]
type = VelSet
Trigger1 = Time = 0
x = 6

[State 906, Turn]
type = Turn
Trigger1 = Time = 0
Trigger1 = P2bodydist x < -30

[State 906, ChangeState]
type = ChangeState
Trigger1 = Time >= 0
Trigger1 = Pos Y > -1
value = 52



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

* IMT Calendar

May 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 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal