Hi, this is my code:
In the Statedef -2.
Explod of the Lifes`bar:
;Lifebar
[State 0, Explod]
type = Explod
trigger1 = var(32) = 10
anim = 3000
ID = 3000
pos = 145,12
space = screen
;postype = front ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
pausemovetime = 0
scale = 0.3,0.3
sprpriority = -2
ignorehitpause = 1
[State 0, Explod]
type = Explod
trigger1 = var(32) = 10
anim = 3001
ID = 3001
pos = 145,12
space = screen
;postype = front;,back,left,right
facing = 1
vfacing = 1
bindtime = 1
pausemovetime = 0
scale = 0.3,0.3
sprpriority = -2
ignorehitpause = 1
[State 0, Explod]
type = Explod
triggerall = var(32) = 10
trigger1 = life = lifemax
anim = 3002
ID = 3002
pos = 143,12
space = screen
;postype = front;,back,left,right
facing = 1
vfacing = 1
bindtime = 1
pausemovetime = 0
scale = 0.3,0.3;0.3
sprpriority = 0
ignorehitpause = 1
Explod of the Power`bar
;PowerBar
[State 0, Explod]
type = Explod
trigger1 = var(32) = 10
anim = 3003
ID = 3003
pos = 143,27;35,-165
space = screen
;postype = front ;,back,left,right
facing = 1
vfacing = 1
bindtime = 1
pausemovetime = 0
scale = 0.3,0.3
sprpriority = -2
ignorehitpause = 1
[State 0, Explod]
type = Explod
trigger1 = var(32) = 10
anim = 3004
ID = 3004
pos = 143,27;35,-165
space = screen
;postype = front ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
pausemovetime = 0
scale = 0.3,0.3
sprpriority = -2
ignorehitpause = 1
[State 0, Explod]
type = Explod
triggerall = var(32) = 10
trigger1 = power = powermax
anim = 3005
ID = 3005
pos = 143,27;35,-165
space = screen
;postype = front ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
pausemovetime = 0
scale = 0.3,0.3
sprpriority = 0
ignorehitpause = 1
To control the duration of explod
;Vars Para Controlar Tiempo
[State 0, VarSet]
type = VarSet
trigger1 = 1
fv = 32
value = 10
ignorehitpause = 1
[State 0, VarSet]
type = VarSet
trigger1 = 1
v = 32
value = 10
ignorehitpause = 1
;Tiempo en Control {Fv(32)=10}
[State 0, ExplodBindTime]
type = ExplodBindTime
trigger1 = 1
ID = 3000
time = fvar(32) = 10
ignorehitpause = 1
[State 0, ExplodBindTime]
type = ExplodBindTime
trigger1 = 1
ID = 3001
time = fvar(32) = 10
ignorehitpause = 1
[State 0, ExplodBindTime]
type = ExplodBindTime
trigger1 = 1
ID = 3002
time = fvar(32) = 10
ignorehitpause = 1
[State 0, ExplodBindTime]
type = ExplodBindTime
trigger1 = 1
ID = 3003
time = fvar(32) = 10
ignorehitpause = 1
[State 0, ExplodBindTime]
type = ExplodBindTime
trigger1 = 1
ID = 3004
time = fvar(32) = 10
ignorehitpause = 1
[State 0, ExplodBindTime]
type = ExplodBindTime
trigger1 = 1
ID = 3005
time = fvar(32) = 10
ignorehitpause = 1
Now the dilemma, I need a formula that reduces the bars, according to the percentage of life and energy. He probado con lo siguiente:
scale = 0+life,0.3
Unfortunately, that did not work, either causes error, if any help possible. Thx