YesNoOk
avatar

Explod gets bigger with a var (Read 158 times)

Started by jjmugen, September 17, 2012, 03:06:35 pm
Share this topic:
Explod gets bigger with a var
#1  September 17, 2012, 03:06:35 pm
  • **
Hi, guys

I want to make an Explod to increment his xscale depending of a var value.
I have var(7) -> Min var = 0 ; Max var = 20
I have explod(2802) -> Min size = 0 , 0.2  ;  Max size = 0.2 , 0.2

So... I want xscale to be incremented 0.01 in each var(7) increment

So...

Code:
[State -3, VarSet]
type = VarSet
trigger1 = 1
fv = 7
value = var(7) * 0.01
ignorehitpause = 1

[State -3, Explod]
type = Explod
trigger1 = !numExplod(2802)
anim = 2802
ID = 2802
pos = 125,163
postype = left
facing = 1
bindtime = -2
removetime = -1
scale = fvar(7) , .2
ontop = 1
ownpal = 1

Could anyone tell me what's the problem, please?

Thanks
Re: Explod gets bigger with a var
#2  September 17, 2012, 04:07:01 pm
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
The scale can't be modified in the explod state directly, since once it's created, it's created with the given parameters.

To do this, create the explod with scale)0,0.2.
Then use ModifyExplod with ID=2802 and the scale you want.
Re: Explod gets bigger with a var
#3  September 17, 2012, 05:25:09 pm
  • **