projectile wont fire again

Started by jamestheepic, June 16, 2024, 09:10:18 AM

Previous topic - Next topic

jamestheepic

so basically i'm trying make my character shoot a projectile going up but when i try click the move it doesn't appear and doesn't go up

heres the code (this is not the same code as the other one)

;Lazer Shoot
[Statedef 240]
type    = S
movetype= A
physics = S
juggle  = 1
velset = 2,0
ctrl = 0
anim = 240
poweradd = 20
sprpriority = 2

[State 200, 1]
type = PlaySnd
trigger1 = Time = 8
value = 0, 2
channel = 1

[State 0, Helper]
type = Helper
trigger1 = time = 10
helpertype = normal
name = "Lazer"
ID = 240
stateno = 241
pos = 44,-106
postype = p1   
facing = 1
keyctrl = 0
ownpal = 0
supermovetime = 0
pausemovetime = 0


[State 200, 7]
type = ChangeState
trigger1 = Time = 0
value = ifelse(Pos Y != 0 || Vel Y != 0,50,0)
ctrl = 1
;---------------------------------------------------------------------------
;Lazer
[Statedef 241]
type = A
movetype = A
physics = N
anim = 241
velset = 6.5,-6
sprpriority = -7

[State 0, AngleDraw]
type = AngleDraw
trigger1 = time <= 5
value = 0
scale = 0+(time*0.2),0+(time*0.2)
ignorehitpause = 1

[State 0, AngleDraw]
type = AngleDraw
trigger1 = time > 60
value = 0
scale = 1-((time-60)*0.2),1-((time-60)*0.2)
ignorehitpause = 1

[State 0, Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 256-(time*5),256

[State 0, HitDef]
type = HitDef
trigger1 = time = 1
attr = S, SP
animtype  = Hard
damage    = 13, 5
priority  = 4
hitflag = MAFD
guardflag = MA
pausetime = 0,16
sparkxy = -10,0
hitsound   = S5,0
guardsound = S6,1
ground.type = High
ground.slidetime = 20
ground.hittime  = 22
ground.velocity = 0,-7
guard.velocity = -2
air.velocity = 0,-2
airguard.velocity = -2, -6
fall.animtype = Hard
fall = 1
fall.recover = 0


[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 40

let me know if theres any problems in the code if not any suggestions welcome. (and please note that this different to the other post i did)

Odb718

You missed this. That instantly changes the state. Set it past 10?
type = ChangeState
trigger1 = Time = 0
vVv Gouken718 vVv SabreTooth718 vVv