Explod/Custom state problem.

Started by BC, February 02, 2009, 05:36:50 PM

Previous topic - Next topic

BC

ok, ive coded an explod in a custom state for when p2 stops being frozen, its like ice breaking.

the problem is when i do it against my own character it works, but against anyone else it doesnt

[State 100012, Explod]
type = Explod
trigger1 = anim = 100012
anim = 327
ID = 327
pos = 0,-60
postype = p1
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
supermovetime = 999
pausemovetime = 999
scale = 1.3,1.3
sprpriority = 4
shadow = 0,0,0
removeongethit = 0
persistent = 0

State 100012 is p2's recover from freezing state which is where i want this explod to play.

does it need to be in a negative state or something, its prob really simple, but this -5 C weather is freezing my brain........
Accepting commissions

aokmaniac13

There's no guarantee your opponent has an anim # 327.
Put that code in player1 instead and use postype = p2

BC

#2
OK just did that and doesnt work

[State 10008, Explod]
type = Explod
trigger1 = anim = 100012
anim = 327
ID = 327
pos = 0,-60
postype = p2
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
supermovetime = 999
pausemovetime = 999
scale = 1.3,1.3
sprpriority = 4
shadow = 0,0,0
removeongethit = 0
persistent = 0

unless i try...... p2stateno = 100012 && time = blah


OK no luck....... p2 is frozen for 150 gameticks so p1's anim is over by then and so is the frost helper.
Accepting commissions

BC

#3
ok fixed it after my slight retarded moment.

[State -2, Explod]
type = Explod
triggerall = !numexplod(327)
trigger1 = enemy,anim = 100012
anim = 327
ID = 327
pos = 0,-60
postype = p2
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
supermovetime = 999
pausemovetime = 999
scale = 1.3,1.3
sprpriority = 4
shadow = 0,0,0
removeongethit = 0
persistent = 0
Accepting commissions