Hello to everyone, well, I'm working with the HUD' s expanded version of Blazblue Central Fiction. To do all my lifebars I use the awesome add004 because you have unlimited actions to do the anims. Ok! but in my other works I use the fight.def of mugen to work with the lifebar, but this time I wanna use the fightfx archive to reproduce it because I wanna do a better work in the recreation at the intro of the round. I try to add the sprites and modify the code but I can't do two things, all two very important things...
First of all, when I use the action facing=ifelse(teamside=1,-1,1) player 2 image it' s 1pixel misaligned to the right... I found in the common1.cns a part to modify the position of X,
;;>>@Config.LifeBar>>
;; lifebar init ; ƒ‰ƒCƒtƒo[ ‰Šú’l
;sys::init_lifebar
trigger1=1|| var(31):=floor(ifelse(teamside=1,-18,18)*fvar(0)+var(3)*0.5) ;;<- LifeBar_Pos_X ;(XÀ•W)
Is this code that I must modify to position the images of player 2? If so, what should I do?
My other problem it's about the life bar. Add004 can use 3 bars for life, one for nodamage, another that it's the lifebar and the last for the danger. Wow! I don't understand nothing here... The life bar it' s in two segments in every of 3 a little part of the border and the rest. Based on what can I know the size of the small segment? And the most iportant thing, How can I give them a value? In the fight.def the mugen is used p1.range.x and p2.range.x, but the part that I think I need to modify in the common1 file, it's this?
Spoiler, click to toggle visibilty
;---
;sys::lifebar_d_mod-life_bar ; ƒ‰ƒCƒt•Ï—ʃo[
[state 0]
type=removeexplod
trigger1=!numexplod(490000) ;;<- no-life-bars
trigger2=!(var(9)&131072) ;;<-opt-mod-life
id=490203
[state 0]
type=explod
trigger1=var(41)>playerid(var(15)),life && var(41)>1
trigger1=numexplod(490000) && !numexplod(490203)
id=490203
anim=f200020
sprpriority=var(46)
ownpal=1
space=screen
postype=left
facing=ifelse(teamside=1,1,-1)
pos=var(14):=var(31)+ceil(var(41)*100/(playerid(var(15)),lifemax)*fvar(0))*ifelse(teamside=1,-1,1), var(32)
scale=var(41)*0.25/(playerid(var(15)),lifemax), 0.25
bindtime=-1
removetime=-1
ignorehitpause=1
supermovetime=-1
pausemovetime=-1
trans=addalpha
alpha=128,128
[state 0]
type=explod
trigger1=numexplod(490000) && numexplod(490203)=1
id=490203
anim=f200010
sprpriority=var(46)
ownpal=1
space=screen
postype=left
facing=ifelse(teamside=1,1,-1)
pos=var(14),var(32)
scale=0.25,0.25
bindtime=-1
removetime=-1
ignorehitpause=1
supermovetime=-1
pausemovetime=-1
trans=addalpha
alpha=128,128
;---
;sys::lifebar_d_damage_bar ; ƒ_ƒ[ƒWƒo[
[state 0]
type=removeexplod
trigger1=!numexplod(490000) ;;<- no-life-bars
trigger2=var(40)!=(playerid(var(15)),life)
trigger3=var(42)!=(playerid(var(15)),life) && !(var(9)&16) ;;<-not_get_damage
id=490201
[state 0]
type=explod
trigger1=var(42)>playerid(var(15)),life
trigger1=numexplod(490000) && !numexplod(490201) && !numexplod(490203)
id=490201
anim=f200060+ifelse((var(9)&16),0,1)
sprpriority=var(46)-1
ownpal=1
space=screen
postype=left
facing=ifelse(teamside=1,1,-1)
pos=var(14):=var(31)+ceil(var(42)*100/(playerid(var(15)),lifemax)*fvar(0))*ifelse(teamside=1,-1,1), var(32)
scale=var(42)*0.25/(playerid(var(15)),lifemax), 0.25
bindtime=-1
removetime=-1-ifelse((var(9)&16),0,1)
ignorehitpause=1
supermovetime=-1
pausemovetime=-1
[state 0]
type=explod
trigger1=numexplod(490000) && numexplod(490201)=1
id=490201
anim=f200050+ifelse((var(9)&16),0,1)
sprpriority=var(46)-1
ownpal=1
space=screen
postype=left
facing=ifelse(teamside=1,1,-1)
pos=var(14),var(32)
scale=0.25,0.25
bindtime=-1
removetime=-1-ifelse((var(9)&16),0,1)
ignorehitpause=1
supermovetime=-1
pausemovetime=-1
;---
;sys::lifebar_d_life_bar ; ƒ‰ƒCƒtƒo[
[state 0]
type=explod
trigger1=numexplod(490000) && !numexplod(490200)
id=490200
anim=f200020
sprpriority=var(46)+1
ownpal=1
space=screen
postype=left
facing=ifelse(teamside=1,1,-1)
scale=0.25,0.25
bindtime=-1
removetime=-1
ignorehitpause=1
supermovetime=-1
pausemovetime=-1
[state 0]
type=explod
trigger1=numexplod(490000) && !numexplod(490210)
id=490210
anim=f200010
sprpriority=var(46)+1
ownpal=1
space=screen
postype=left
facing=ifelse(teamside=1,1,-1)
scale=0.25,0.25
bindtime=-1
removetime=-1
ignorehitpause=1
supermovetime=-1
pausemovetime=-1
;---
;sys::lifebar_d_life_bar_color2 ; ƒ‰ƒCƒtƒo[ - F‚Q
[state 0]
type=explod
trigger1=numexplod(490000) && !numexplod(490205)
id=490205
anim=f200040
sprpriority=var(46)+2
ownpal=1
space=screen
postype=left
facing=ifelse(teamside=1,1,-1)
scale=0.25,0.25
bindtime=-1
removetime=-1
ignorehitpause=1
supermovetime=-1
pausemovetime=-1
[state 0]
type=explod
trigger1=numexplod(490000) && !numexplod(490215)
id=490215
anim=f200030
sprpriority=var(46)+2
ownpal=1
space=screen
postype=left
facing=ifelse(teamside=1,1,-1)
scale=0.25,0.25
bindtime=-1
removetime=-1
ignorehitpause=1
supermovetime=-1
pausemovetime=-1
;---
;sys::lifebar_d_life_changed ; ƒ‰ƒCƒt•Ï‰»
[state 0]
type=modifyexplod
trigger1=(var(8)&1)
id=490200
postype=left
facing=ifelse(teamside=1,1,-1)
pos=var(14):=var(31)+floor(var(43)*100/(playerid(var(15)),lifemax)*fvar(0))*ifelse(teamside=1,-1,1), var(32)
scale=var(43)/4.0/(playerid(var(15)),lifemax), 0.25 *(var(43)>1)
[state 0]
type=modifyexplod
trigger1=(var(8)&1)
id=490210
postype=left
facing=ifelse(teamside=1,1,-1)
pos=var(14),var(32)
scale=0.25, 0.25 *(var(43)>1)
;sys::lifebar_d_life_changed_color2
[state 0]
type=modifyexplod
trigger1=(var(8)&1)
id=490205
postype=left
facing=ifelse(teamside=1,1,-1)
pos=var(31)+floor(var(43)*100/(playerid(var(15)),lifemax)*fvar(0))*ifelse(teamside=1,-1,1), var(32)
scale=var(43)*0.25/(playerid(var(15)),lifemax), 0.25 *(var(43)>1)
trans=addalpha
;;old; alpha=256-( var(14):=var(43)*256/(playerid(var(15)),lifemax) ), var(14)
alpha=256-( var(14):=ifelse(var(43)>(playerid(var(15)),lifemax)*7/8, 256, var(43)*8/7*256/(playerid(var(15)),lifemax)) ), var(14)
[state 0]
type=modifyexplod
trigger1=(var(8)&1)
id=490215
postype=left
facing=ifelse(teamside=1,1,-1)
pos=var(31)+floor(var(43)*100/(playerid(var(15)),lifemax)*fvar(0))*ifelse(teamside=1,-1,1), var(32)
scale=0.25, 0.25 *(var(43)>1)
trans=addalpha
alpha=256-var(14),var(14)
;sys::lifebar_d_life_changed_color2_warnning
[state 0]
type=modifyexplod
trigger1=(var(8)&1) && (var(9)&8192)>0 ;; 1/3 life
id=490205
trans=addalpha
alpha=256-( var(14):=abs((gametime%33)-16)*16 ), var(14)
[state 0]
type=modifyexplod
trigger1=(var(8)&1) && (var(9)&8192)>0 ;; 1/3 life
id=490215
trans=addalpha
alpha=256-var(14),var(14)
;---
;sys::lifebar_d_life_no_damage ; ƒ‰ƒCƒtƒo[ ƒ_ƒ[ƒW‚È‚µ
[state 0]
type=removeexplod
trigger1=!numexplod(490000) || var(43)<(playerid(var(15)),lifemax)
id=490206
[state 0]
type=explod
trigger1=var(43)>=(playerid(var(15)),lifemax)
trigger1=numexplod(490000) && !numexplod(490206)
id=490206
anim=f200000
sprpriority=var(46)+2
ownpal=1
space=screen
postype=left
facing=ifelse(teamside=1,1,-1)
pos=var(31)+floor(100*fvar(0))*ifelse(teamside=1,-1,1), var(32)
scale=0.25,0.25
bindtime=-1
removetime=-1
ignorehitpause=1
supermovetime=-1
pausemovetime=-1
;---
This is the life bars that I wanna add:
Spoiler, click to toggle visibilty
Let's see if you can help me to move forward with the project, I would really appreciate it. Thank you very much.