YesNoOk
avatar

Problem with layerno (Read 3115 times)

Started by GaziraAgain, April 20, 2018, 07:11:36 pm
Share this topic:
Problem with layerno
#1  April 20, 2018, 07:11:36 pm
  • ****
    • djjosehisterico@gmail.com
Hello to everyone, I´m near to close the Calamity Trigger Hud, and with this I have two questions that I can´t resolve by myself. Like the other Blazblue lifeabar that I release recently, it´s created with the Add004 addon and the animation Round, Fight, K.O, and Win are in the fightfx file and lifebars are in the fight.sff archive. The problem it´s that I need that two background images of this part working below the lifebar. Lifebars use layerno=0 in the fight archive. I need to do this because I wanna work with the degrade for the lifebar in the intro and with this images on it you can´t see well. I put an image where you can see this two image above the lifebars:

And this is the common1 code that I use for one of the images, then what I need modify or add on it?

;sys::img_d_Background
[state 0]
   type=explod
   trigger1=!var(20) && var(1)=1 && !numexplod(1)
   anim=f199131
   id=199131
   space=screen
   postype=left
   sprpriority=1
   ownpal=1
   bindtime=-1
   pos=var(11),var(12)
   scale=0.5,0.5
   ontop=1
   removetime=-1

And my other question It has nothing to do with this but I take the post to ask you. I can´t get a space on the combo fonts... When you arrive at 20 the numbers are a little together:


And this is the code that I found in the common1 archive but I only find the way to move the fonts not give them space.

;;;>>@Config.Combo.Pos>>
;;sys::combo_d_pos ;; v13: pos x (240p)
[state 0]
   type=null
   trigger1=(var(11)%10000=2) && ((var(11)/10000)!=(var(11)%10000)) ;;<- combo start
   trigger1=1|| var(13):=ifelse(teamside=2,-150,floor(var(3)/fvar(0))+150) ;;<-init pos x
   trigger2=(var(11)%10000>1) && (var(11)/10000)<(var(11)%10000) ;;<-combo update
   trigger2=1|| var(13):=var(13)+4*ifelse(teamside=2,-1,1) ;;<-shake
   trigger3=numexplod(97800) && ((teamside=2 && var(13)<100) || (teamside=1 && var(13)>floor(var(3)/fvar(0))-150)) ;; goal pos x
   trigger3=1|| var(13):=var(13)+(ifelse(teamside=2,75,floor(var(3)/fvar(0))-36)-var(13))/3 +teamside*2-3 ;;<-combo pos x shift

This is all, I hope you can help me more than anything in the first question, thank you very much.
Re: Problem with layerno
#2  April 20, 2018, 07:48:40 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
For your second question it would be helpful to share the Explod (or Helper) code that actually spawns the combo anims

Re: Problem with layerno
#3  April 20, 2018, 09:13:37 pm
  • ****
    • djjosehisterico@gmail.com
Here it is, I think.

;sys::combo_d_nums
[state 0]
   type=explod
   id=97802
   trigger1=numexplod(97800) && !numexplod(97802)
   anim=f300050+((var(11)%10000)%10)  +var(14)*10
   space=screen
   postype=left
   sprpriority=var(46)+24
   ownpal=1
   scale=0.5,0.5
   bindtime=-1
   ignorehitpause=1
   supermovetime=-1
   pausemovetime=-1