YesNoOk
avatar

Coding MVC Style Launcher (Read 237 times)

Started by ApolloGrimoire, June 15, 2014, 12:04:40 pm
Share this topic:
Coding MVC Style Launcher
#1  June 15, 2014, 12:04:40 pm
  • **
  • Noob at this kind of thing
    • UK
Never mind, I got it to work, but when I try to "holdup", he's stuck in an infinite loop of his attack animation.

Here's the coding.

[Statedef 420]
type = C
movetype = A
physics = C
anim = 420
poweradd = 30
juggle = 10
velset = 0
ctrl = 0
facep2 = 1

[State 420, 1]
type = PlaySnd
trigger1 = AnimElem = 2
value = 1,2

[State 420, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value = 0,8

[State 420, HitDef]
type=HitDef
triggerall=fvar(8)<2
trigger1= !var(16) && (var(15)<1 || var(20)) && !Time
trigger1=!Time
attr=C,NA       
hitflag=MAF       
guardflag=MA         
animtype=Hard         
priority=4, Hit   
damage=Ifelse(var(55)=2,35,Ifelse(var(55)=1,60,85)), 0
ID=200*!var(20)
getpower=30 * !var(20), 0
givepower=30, 30
pausetime=Ifelse(var(20), 6, 12), Ifelse(var(20), 6, 12)
guard.pausetime=Ifelse(var(20), 6, 12), Ifelse(var(20), 6, 12)
sparkNo=-1 + 0 * (var(33) := 8012)
guard.sparkNo=-1 + 0 * (var(34) := 8000)
sparkXY=-10 + 0 * (var(35) := 90), var(36) := -90
hitsound=S2+10*var(44),2
guardsound=s130, 0
air.animType=Back
fall.animType=Back
ground.type=High
air.type=Low
ground.slidetime=18 + 4*var(9)
ground.hittime=18 + 4*var(9)
guard.hittime=18
air.hittime=Ifelse(var(55)=2,30,120)
ground.velocity=Ifelse(var(55)=2,-1,Ifelse(var(55)=1,-9,-10.52))*(Ifelse(!var(20),1,.5)),Ifelse(var(55)=2,-12,0)
guard.velocity=Ifelse(var(20),-4,-8)
air.velocity=Ifelse(var(55)=2,-1,Ifelse(var(20),-2.5,-5)),Ifelse(var(55)=2,-10,-3)
ground.cornerPush.velOff=0
guard.cornerPush.velOff=0
air.cornerPush.velOff=0
yaccel= Ifelse(var(55)=2,.4,.65)
fall=0
fall.recover=1
fall.recovertime=Ifelse(var(55)=2,20,120)
palFX.time=12 * var(9)
palFX.add=255,255,255
palFX.sinAdd= -255,-255,-255,48
envshake.time=12
envshake.ampl=Ifelse(random<=500,-4,4)

[State 420, ChangeState]
type=ChangeState
trigger1=var(55)=2&&movehit=1&&command="holdup"
value=123
ctrl=0
ignorehitpause=1

[State 420, StateTypeSet: Idle]
type=StateTypeSet
trigger1=animelemTime(5)= 0
moveType=I

[State 420, End]
type=ChangeState
trigger1=!AnimTime
value=11
ctrl=1

The attack hits in the 3rd frame, 12 clicks in.
Avatar shows who I'm creating at the moment.

Insert signature here
Last Edit: June 15, 2014, 12:48:12 pm by ApolloGrimoire
Re: Coding MVC Style Launcher
#2  June 15, 2014, 04:47:32 pm
  • *****
  • aka G.o.D.
    • Italy
    • god-of-death-alex.deviantart.com/
Does the state 123 exist in the cns?

Re: Coding MVC Style Launcher
#3  June 15, 2014, 08:04:18 pm
  • ***
  • I want to learn, no criticize
    • Dominica
    • yaretromero@hotmail.com

  • Online
that the all code you have? for your upper that code is only a stronge punch.