[SOLVED] Problem with a hyper

Started by TrinitroRoy, February 25, 2012, 03:21:14 PM

Previous topic - Next topic

TrinitroRoy

I have got a problem with the Air Hyper. Everytime, after TopMan executed the Air Hyper, he will walk aroung on air. How can I fix it?
By the way: this is the code:
;Air Hyper (Downward TopSpinUltra)
[Statedef 3000]
type = S
movetype = A
physics = N
anim = 3000
ctrl = 0
velset=0,0
sprpriority  = 2
facep2 = 1

[state 3000, Vacuum]
type = Helper
trigger1 = Time >= 4
trigger1 = !Numhelper(2160)
ID = 2160
name = "Vacuum"
postype = P2
pos = enemynear,const(size.ground.back)-25,-ceil(enemy,pos y)
stateno = 2160
persistent = 0
size.ground.back = 5
size.ground.front = 5
size.height = 240
persistent = 0

[State 3000, PlayerPush]
type = PlayerPush
trigger1 = 1
value = 0

[State 3000,EX SHADOW FX]
type=afterimage
trigger1=Time=5
time=300
TimeGap =2
FrameGap=5
length=15
PalBright=1,1,1
PalContrast=150,150,150
PalAdd=0,0,0
PalMul=.5,.5,.5
trans=add

[State 3000, assertspecial]
type = assertspecial
trigger1 = 1
flag = noBG
flag2 = noFG
ignorehitpause = 1

[State 3000, SuperPause]
type = SuperPause
trigger1 = AnimElemTime(1) = 0
Time = 40
pos = 9999,-9951
sound = 8889,0
poweradd = -1000
movetime = 40

[State 3000, Sound]
type = PlaySnd
trigger1 = Time = 12
value = s8889,0

[State 3000, Hyper Explode]
type = Explod
trigger1 = time = 0
anim = 4532
ID = 4530
postype = p1
bindtime = -1
pos = 10,-45
ownpal = 1
sprpriority = 5
supermovetime = 99999999
pausemovetime = 99999999

[State 3000, Sound]
type = PlaySnd
trigger1 = Time = 12
value = 11,5

[State 3000, Ground Flash]
type = Explod
trigger1 = time = 35
anim = 4540
ID = 4540
bindtime = -1
postype = P1
pos = -120,0
ownpal = 1
removetime = -2
sprpriority = 5
scale = 1,1
removeongethit = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 3000, Hyper Portrait]
type = explod
trigger1 = time = 0
anim = 1080
postype = back
sprpriority = -2
supermovetime = -1
removetime = 60
pos = 0,0
bindtime = -1
removeongethit = 1

[State 3000, RRM HyperBg]
type = explod
trigger1 = time = 40
anim = 750
id = 750
postype=left
pos = 0,0
scale = 1,1
sprpriority = -2
bindtime = -1
removetime = -1
removeongethit = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 3000, RRM HyperBg Screen Pack High Res]
type = explod
trigger1 = time = 40
anim = F750
id = 750
postype=left
pos = 0,0
scale = 1,1
sprpriority = -1
bindtime = -1
removetime = -1
removeongethit = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 3000, Hyper Combo Finish]
type = PlaySnd
triggerall = !p2life
trigger1 = numexplod(8290) = 0
value = S9999,6
volume = 0
channel = -1
freqmul = 1.0
loop = 0
pan = 0
persistent = 0

[State 3000, HitDef]
type = HitDef
trigger1 = animelem = 5 || animelem = 8 || animelem = 11 || animelem = 14 || animelem = 17 || animelem = 20 || animelem = 23 || animelem = 26 || animelem = 29 || animelem = 32
TRIGGER2 = animelem = 35 || animelem = 38 || animelem = 41 || animelem = 44 || animelem = 47 || animelem = 50 || animelem = 53 || animelem = 56 || animelem = 59 || animelem = 62
attr = S,HA
hitflag = MAF
guardflag = MA
getpower = 0
animtype = hard
priority = 7,Hit
damage =35,10
pausetime = 4,3
sparkno = s7000
guard.sparkno = s3333
sparkxy = -10,-110
hitsound = s8000,1
guardsound = 6,0
ground.type = High
air.type = High
GROUND.hittime = 45
ground.velocity = 5,-1.15
guard.velocity= -1
air.velocity = 5,-.6
FALL=1
air.fall=1
RECOVER=0
envshake.freq = 70
envshake.ampl = -6
envshake.phase = 99
envshake.time = 6

[State 3000, HitDef]
type = HitDef
trigger1 = animelem = 6 || animelem = 9 || animelem = 12 || animelem = 15 || animelem = 18 || animelem = 21 || animelem = 24 || animelem = 27 || animelem = 30 || animelem = 33
TRIGGER2 = animelem = 36 || animelem = 39 || animelem = 42 || animelem = 45  || animelem = 58 || animelem = 51 || animelem = 54 || animelem = 57 || animelem = 60
attr = S,HA
hitflag = MAF
guardflag = MA
getpower = 0
animtype =hard
priority = 7,Hit
damage = 35,10
pausetime = 4,3
sparkno = s7000+(random%4)
guard.sparkno = s3333
sparkxy = -10,-110
hitsound = s8000,1
guardsound = 6,0
ground.type = High
air.type = High
GROUND.hittime = 45
ground.velocity = -5,-1.1
guard.velocity= -1
air.velocity = -5,-.7
FALL=1
air.fall=1
RECOVER=0
envshake.freq = 70
envshake.ampl = -6
envshake.phase = 99
envshake.time = 6

[State 3000, HitDef]
type = HitDef
trigger1 = animelem = 63
attr = S,HA
hitflag = MAF
guardflag = MA
getpower = 0
animtype =hard
priority = 7,Hit
damage = 80,20
pausetime = 50,50
sparkno = s7000+(random%4)
guard.sparkno = s3333
sparkxy = -10,-110
hitsound = s8000,1
guardsound = 6,0
ground.type = High
air.type = High
GROUND.hittime = 45
ground.velocity = -25,-3
guard.velocity= -5
air.velocity = -25,-1
FALL=1
air.fall=1
RECOVER=0
envshake.freq = 70
envshake.ampl = -6
envshake.phase = 99
envshake.time = 6

[State 3000, End]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Seravy

Quote
[State 3000, End]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1
This returns the character to the standing state (0) after the move is over. Replace it with an aerial state (50 or 51 usually works well if you use standard common states), or if you want the character to be unable to attack again before landing, then code an aerial state without control and use that.

TrinitroRoy

Quote from: Seravy on February 25, 2012, 07:40:01 PM
Quote
[State 3000, End]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1
This returns the character to the standing state (0) after the move is over. Replace it with an aerial state (50 or 51 usually works well if you use standard common states), or if you want the character to be unable to attack again before landing, then code an aerial state without control and use that.
It worked. Thanks!
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns