YesNoOk
avatar

Diagonal Lifebar on Character (Read 16603 times)

Started by -Extasis-, December 01, 2013, 04:07:49 pm
Share this topic:
Diagonal Lifebar on Character
New #1  December 01, 2013, 04:07:49 pm
  • **
  • Tu tiempo paso, tu ya no brilla'♪♫
    • Mexico
    • Manuel.is.back.13@hotmail.com
first explain the theory

Example



we have to divide the straight parts of the diagonal



3 explod will be to complete the bar

You should choose the percentage,each explod, I gave it a value equal to 3,       33% to 34% last

http://mugenguild.com/forum/topics/bar-fluid-increase-and-degreaded-progressively-155134.0.html
for the reduction, and had created Increase and Degreaded Progressively

just change the formula of value
first explod left
Code:
[State 1500,            VarSet]
type                    = VarSet
trigger1                = 1
fv                      = 22
value                   = ifelse((Fvar(21)-"Total life - percentage")<0,0,(Fvar(21)-"Total life - percentage"))/var(20)

Second explod

[State 1500,            VarSet]
type                    = VarSet
trigger1                = fvar(21)>= (life) - (the percentage given)
fv                      = 23
value                   = 0.25;full size of explod complete

[State 1500,            VarSet]
type                    = VarSet
trigger1                = fvar(21)< (life) - (the percentage given)
fv                      = 23
value                   = ifelse((Fvar(21)-"percentage")<0,0,(Fvar(21)-"percentage"))/var(20)

third right explod

[State 1500,            VarSet]
type                    = VarSet
trigger1                = fvar(21)>=double maximum percentage subtracted  life
fv                      = 24
value                   = 0.25

[State 1500,            VarSet]
type                    = VarSet
trigger1                = fvar(21)<double maximum percentage subtracted  life
fv                      = 24
value                   = ifelse((Fvar(21))<0,0,(Fvar(21)))/var(20)

for the second explod
you need to create an explod trigger1 = 1, forever this being created, and removetime = -2, the animation should be 1 time

must divide the percentage of life, second explod in my case 33% = 333
in number, you decide my number is 4

333/4

create a variable for this only you have a animation of fightfx
F can not be used in anim ifelse the explod

Code:
[State 1500,            VarSet]
type                    = VarSet
trigger1                = 1
v                       = 19
value                   = Ifelse(Fvar(21)>=584,0,Ifelse(Fvar(21)<=584&&Fvar(21)>=501,1,Ifelse(Fvar(21)<=501&&Fvar(21)>=418,2,Ifelse(Fvar(21)<=418&&Fvar(21)>=0,3,0))))

[State 1500,            Explod]
type                    = Explod
trigger1                = 1
anim                    = F50024+var(19)
ID                      = 50024
pos                     = 101.4,20
bindtime                = -1
removetime              = -2
facing                  = 1
space                   = screen
scale                   = 0.250,0.250
sprpriority             = -11
ontop                   = 0
ownpal                  = 1
ignorehitpause          = 1

angles that give

Use this option only now photoshop or do-it Your Way


angles act this way




indeed between the diagonal is longer, more frames need

good luck

video

yo confio en que vuelvas a ser mi princesa ♥ ♪♫
Last Edit: December 01, 2013, 04:21:33 pm by -Extasis-