collapse

Author Topic: Throw Problem...  (Read 405 times)

0 Members and 1 Guest are viewing this topic.

Offline Error Macro

  • Never finishes anything
  • MUGEN Content Architect
  • *****
  • Posts: 1861
  • Country: United States us
  • Last Login:May 30, 2022, 05:37:56 AM
    • :)
    • Email
Throw Problem...
« on: May 24, 2009, 01:14:51 AM »
Ok, so I'm coding Morrigan's in air throw.  When she lands, she should go into the throw's landing state (873) but doesn't.  She instead, goes into the normal landing state...  All anims are correct.

Here is the full code for the throw.

; Air throw - Attempt
[Statedef 870]
type    = A
movetype= A
physics = A
juggle  = 1
ctrl = 0
anim = 870
sprpriority = 2

[State 870, PlaySnd]
type = PlaySnd
trigger1 = animelem = 2
value = 8400,2
volume = 255

[State 870, HitDef]
type = HitDef
trigger1 = AnimElem = 1
trigger1 = P2StateType = A
attr = A, NT
hitflag = A
priority = 2, Miss
sparkno = -1
sprpriority = 1
p1facing = 1
p2facing = 1
p1stateno = 871
p2stateno = 875
fall = 1

[State 0, ChangeState]
type = ChangeState
trigger1 = Animtime = 0
value = 1400
ctrl = 1

;---------------------------------------------------------------------------------------------
;Air Throw Kick - Grab (pills)

[Statedef 871]
type    = A
movetype= A
physics = N
anim = 871
velset = 0,0

[State 871, Width]
type = Width
trigger1 = Time >= 0
value = 15,0

[State 337, PlaySnd]
type = PlaySnd
trigger1 =  AnimElem = 1
value = 54,5
[State 871, PlaySnd 1]
type = PlaySnd
trigger1 = Time = 0
value = 8600,0
[State 871, PlaySnd 2]
type = PlaySnd
trigger1 = Time = 5
value = 9999,2

[State 871, Bind 1]
type = TargetBind
trigger1 = AnimElem = 1
pos = 35,-66
[State 871, Bind 2]
type = TargetBind
trigger1 = AnimElem = 2
pos = 23,-24
[State 871, Bind 3]
type = TargetBind
trigger1 = AnimElem = 3
pos = 0,4
[State 871, Bind 4]
type = TargetBind
trigger1 = AnimElem = 4
pos = 0,4
[State 871, Bind 5]
type = TargetBind
trigger1 = AnimElem = 5
pos = 0,4
[State 871, ChangeState]
type = ChangeState
trigger1 = AnimTime = 0
value = 872
ctrl = 0

; Air throw - Down we go!
[Statedef 872]
type    = A
movetype= A
physics = A
anim = 872
velset = 0,1
poweradd = 0

[State 872, TargetBind]
type = TargetBind
trigger1 = 1
pos = 0,4

[State 872, Jumping Up 3]
type = VelAdd
trigger1 = 1
x = 0
y = .4
[State 872, ChangeState]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 873

;Air throw - land
[Statedef 873]
type    = A
movetype= A
physics = A
anim = 8732
velset = 0,0

[State 873, TargetBind]
type = TargetBind
trigger1 = 1
pos = 0,0

[State 873, ChangeState]
type = ChangeState
trigger1 = !animtime
value = 874

;Air throw - Backflip
[Statedef 874]
type=C
physics=C
movetype=A
anim=1503
ctrl=0
velset=0,0
sprpriority=1
[State 1504, pos]
type=posset
trigger1= animelemtime(2)<0
y=0
[State 1504, vel]
type=velset
trigger1= animelemtime(2)<0
x=0
y=0

[State 1305, assert]
type=assertspecial
trigger1= 1
flag=noautoturn

[State 1305, throw]
type=targetstate
trigger1= !time
value=876

[State 1305, hurt]
type=targetlifeadd
trigger1= !time
value=-70
[State 1305, hurt]
type=targetpoweradd
trigger1= !time
value=36
[State 1305, hurt]
type=poweradd
trigger1= !time
value=72

[State 1305, bind 1]
type=targetbind
trigger1= animelemtime(1)>=0 && animelemtime(2)<0
pos=48,0

[State 830, Shake]
type = EnvShake
trigger1= !time
time = 15
ampl = -10
[State 1305, snd]
type=playsnd
trigger1= !time
value=8200,0
[State 1305, dust]
type=explod
trigger1= !time
anim=1508
ID=1508
sprpriority=2
postype=p2
pos=0,0
ownpal=1
scale=1,1

[State 1305, vel]
type=velset
trigger1= animelem=2
x=-4
y=-6
[State 1305, sts]
type=statetypeset
trigger1= animelemtime(2)>=0
statetype=A
physics=A

;---------------------------------------------------------------------------------------------
;Air throw - P2 state
[Statedef 875]
type    = A
movetype= H
physics = N

[State 875, ChangeAnim2]
type = ChangeAnim2
trigger1 = Time = 0
value = 874

;Air throw P2 Thrown
[Statedef 876]
type    = A
movetype= H
physics = N
velset = -6,-10
poweradd = 40
anim = 5050

[State 872, TargetLifeAdd]
type = LifeAdd
trigger1 = Time = 0
value = -120

[State 876, VelAdd]
type = VelAdd
Trigger1 = 1
y = .4

[State 876, SelfState]
type = SelfState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 5100

Where the hell did I go wrong?



Offline supermystery

  • MUGEN Content Architect
  • *****
  • Posts: 125
  • Last Login:July 02, 2011, 02:22:50 PM
    • Supermystery's Site
Re: Throw Problem...
« Reply #1 on: May 24, 2009, 10:55:08 AM »
statedef 872 should have physics = N

hope it helps
Check out Mugen - Lair Below

Mugen - Lair

Offline Error Macro

  • Never finishes anything
  • MUGEN Content Architect
  • *****
  • Posts: 1861
  • Country: United States us
  • Last Login:May 30, 2022, 05:37:56 AM
    • :)
    • Email
Re: Throw Problem...
« Reply #2 on: May 24, 2009, 03:28:24 PM »
I feel like an idiot now. :D  Thanks, it works! ;D

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

D2TD VS Showcase Thread by D2TD
[November 24, 2024, 09:12:03 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by LightFlare
[November 21, 2024, 09:44:09 PM]


Terrordrome: Rise of the Boogeymen Extended Version ( jeepers creepers) version by leonardo
[November 19, 2024, 10:22:47 PM]


Hill of the Nameless(1.1 Only) by Vegaz by LightFlare
[November 19, 2024, 10:50:39 AM]


Golden Axe Returns by gokudo99
[November 19, 2024, 03:59:31 AM]


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]


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

* 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