YesNoOk

Show content

This section allows you to browse the content for this member. Note that you can only see content for which you have sufficient viewing permissions.


Zoaker is Offline
Contact Zoaker:

Zoaker

User

Messages by Zoaker

    

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

 February 06, 2024, 11:23:06 pm View in topic context
avatar  Posted by Zoaker  in Explods doesnt appear when in a custom state (from a non-targetstate, state) (Started by Zoaker February 06, 2024, 11:23:06 pm
 Board: M.U.G.E.N Development Help

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
;-------------------------------------------------------------------------------