YesNoOk
avatar

Explods doesnt appear when in a custom state (from a non-targetstate, state) (Read 3054 times)

Started by Zoaker, February 06, 2024, 11:23:06 pm
Share this topic:
Explods doesnt appear when in a custom state (from a non-targetstate, state)
#1  February 06, 2024, 11:23:06 pm
  • avatar
    • Brazil
The char just does'nt reproduce the explods nor even change the state when it changes, i made a changestate in a Hitfall state (5050) but the character just refuse to change to the custom one, but, reproduce the Velset of wall bounce and etc

-------
[State 0, TargetState]
type = changeState
triggerall = stateno != 425
trigger1 = backedgebodydist <= 5 && Vel X <=-10;movehit = 1
value = 425
-------

heres the Custom State code

;-------------------------------------------------------------------------------
; P2 Voando parede
[Statedef 425]
type    = A
movetype= H
physics = A
juggle  = 2
velset = 0,0
ctrl = 0
anim = 5030
sprpriority = 2
facep2 = 1

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

[State 0, VelSet]
type = VelSet
trigger1 = time = 0
y = -6

[State 0, AfterImage]
type = AfterImage
trigger1 = Time = 0
time = 20
length = 20
palcolor = 256
palinvertall = 0
palbright = 30,30,30
palcontrast = 220,20,20
palpostbright = 0,0,0
paladd = 25,10,10
palmul = .75,.65,.65
timegap = 1
framegap = 2
trans = add ;"none","add1","sub"
ignorehitpause = 1
persistent = 1

[State 0, PalFXWiz]
type = PalFX
trigger1 = time = 0
time = 4
add = 0,-200,-200
mul = 256,256,256
sinadd = 40,80,40,10
invertall = 1
color = 0

[State 0, VelSet]
type = VelSet
trigger1 = 1
x = -13-ifelse(enemy,var(2) = 1,10,0)

[State 200, End]
type = selfState
trigger1 = backedgebodydist < 5
value = 426
;-------------------------------------------------------------------------------
; P2 Batendo parede
[Statedef 426]
type    = A
movetype= H
physics = A
juggle  = 2
velset = 0,0
ctrl = 0
anim = 5030
sprpriority = 2

[State 0, LifeAdd]
type = LifeAdd
trigger1 = time = 0
value = -10

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 0
value = S1,11
volume = 50

[State 0, Explod]
type = Explod
trigger1 = time = 0;gametime%6 = 0
anim = 625
ID = 625
pos = -2,-2
postype = p1  ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
scale = 0.7,0.5
sprpriority = -1
ownpal = 1
angle = 90
[State 0, Explod]
type = Explod
trigger1 = time = 0
anim =  365
ID = 365
pos = -20,0
postype = p1
vel = -2,-2
facing = -1
vfacing = 1
bindtime = 1
removetime = -2
scale = .7,.7
sprpriority = 2
ontop = 1
ownpal = 1
removeongethit = 0
ignorehitpause = 0
[State 0, VelSet]
type = VelSet
trigger1 = time = 0
y = -7
x = 4

[State 200, End]
type = selfstate
trigger1 = time = 6
value = 5050
;-------------------------------------------------------------------------------
Re: Explods doesnt appear when in a custom state (from a non-targetstate, state)
#2  February 07, 2024, 02:03:34 am
  • *****
  • Shame on you!
    • USA
Change this selfstate to a changestate and see if it shows up. 
[State 200, End]
type = selfState
trigger1 = backedgebodydist < 5
value = 426

You can also change the physics of 426 to N and change it's selfstate to extend the time so you can tell that it's changing. 1/10 of a second is pretty fast.
vVv Ryuko718 Updated 10/31/22 vVv