YesNoOk
avatar

[SOLVED] How to fix an explod (Read 191 times)

Started by jjmugen, December 20, 2011, 04:01:05 pm
Share this topic:
[SOLVED] How to fix an explod
#1  December 20, 2011, 04:01:05 pm
  • **
Hi, guys.

I want to implement an extra bar as an explod.
I've tried with code below, but there's a problem.
Explod still has his position refering to p1 pos or some relative position
depending of p1 facing.

This code...

Code:
[State -3, Graphic to show]
type = Explod
trigger1 = ;the needed triggers...
ID = 999
anim = F999
pos = 190,175
bindtime = -1
postype = back
facing = facing
removetime = -1
scale = .3,.3
ontop = 1
ownpal = 1
persistent = 0

... fixes the explod only if p1 is looking right way. If p1 jumps over p2, for example,
explod changes his position to the relative mirror position.

Could you tell me how could I fix an Explo on screen absolutely?

Thanks.
Last Edit: December 21, 2011, 08:04:57 am by jjmugen
Re: How to fix an explod
#2  December 20, 2011, 08:33:38 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Don't swap the facing parameter. The explod needs to always face the same way. What you need to do is deal with the absolute position based on teamside.

Teamside = 1
facing = 1
postype = left

teamside = 2
facing = -1
postype = right

You do have to split them up, postype won't take ifelse.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: How to fix an explod
#3  December 21, 2011, 08:04:40 am
  • **
Don't swap the facing parameter. The explod needs to always face the same way. What you need to do is deal with the absolute position based on teamside.

Teamside = 1
facing = 1
postype = left

teamside = 2
facing = -1
postype = right

You do have to split them up, postype won't take ifelse.

I didn't know about team side. Thanks a lot  :)