YesNoOk
avatar

Explod palfx problem (Read 443 times)

Started by Juano16, June 27, 2009, 07:11:56 am
Share this topic:
Explod palfx problem
#1  June 27, 2009, 07:11:56 am
  • ***
hi
im working in the cybors from mortal kombat 3, and in the original game when they are punched appear a dark blood (oil i think) and i tried to do the same for him, add a system for the blood helpers, a palfx to make the blood sprites black, it works good almost all time, but some times the blood lost his effect and turn red again, i use in the palfx sctrl time 9999
in mugen exist some limitation for this, or im doin something wrong?

thats the code i use

fvar for the oil blood color

[mcode][State -2, oil Blood]
type = VarSet
triggerall = !fvar(8) && !enemynear,numpartner
trigger1 = enemynear,name = "juano`s cyborg guy"
fvar(8) = 2[/mcode]

and the blood are helpers, i use this for the color change

[mcode][State oil blood]
type = PalFX
trigger1 = root,fvar(8) = 2 && !time
time = 9999
add = -50,-50,-50
mul = 256,256,256
color = 0
ignorehitpause = 1[/mcode]


maybe the final solution is use other sprites for the blood, but im trying to avoid that
Re: Explod palfx problem
#2  June 27, 2009, 08:21:00 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
root's fvar will not be 2 at !time in the situations where it stays red. Is this only in simul or both?

I suggest putting in a displaytoclipboard and keeping an eye on it.


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: Explod palfx problem
#3  June 27, 2009, 09:49:51 am
  • ***
is only for 1 vs 1 mode
and in the clipboard i see the fvar(8 ) value, and always have 2, never change

also i tryied erasing the && !time but the problem still

here 1 imagen when the effect work


Re: Explod palfx problem
#4  June 27, 2009, 05:08:45 pm
  • ******
  • [E]
    • Mexico
helper's code is executed before the parent's so there is a possibility that they won't be able to see the parent's fvar2 change on that specific tick when time=0, try using time =[0,1] instead.
Re: Explod palfx problem
#5  June 27, 2009, 09:33:42 pm
  • ***
helper's code is executed before the parent's so there is a possibility that they won't be able to see the parent's fvar2 change on that specific tick when time=0, try using time =[0,1] instead.

i also tried using time < 2 but is the same
im trying use diferent times, and also i tried to use the varset inside the helper, and still problems