YesNoOk
avatar

Help with the layers (Read 745 times)

Started by Alexander666, October 12, 2019, 07:14:25 am
Help with the layers
#1  October 12, 2019, 07:14:25 am
  • avatar
    • Mexico
What command should I modify if I want to put a layer or an image behind my character?
I was searching it and I read that this was done by modifying the command "layerno = 0", but that code does not appear inside my character commands when l checked in Fighter Factory, what can I do?  :???:
For example: I want the character, that when he make a super combo, at the end of it, l want to put an image of a destroyed city
Last Edit: October 12, 2019, 04:57:27 pm by Alexander666
Re: Help with the layers
#2  October 14, 2019, 11:38:58 am
  • ***
    • Brazil
    • deathscythemugen.neocities.org
layerno is only for stages and screenpacks. What you want is sprpriority.
If the sprite you want is an explod or a helper, they have this option, change it to something like -4 or -5. Examples:

[State 3000, Explod]
type = Explod
trigger1 = !Time
anim = 3005
ID = 3005
sprpriority = -5
postype = left
pos = 160, 120
scale = 1, 1
bindtime = -1
removetime = -1
Re: Help with the layers
#3  October 15, 2019, 03:08:41 am
  • avatar
    • Mexico
And how do l change the sprite priority using a controller?
For example, l have a group of animations, in my case is like this:

Number: 999
Group: 3101
With 1000 frames in that group
But the thing that l want to do, is to change the sprpriority of the last 500 frames of the group, to see the char in front of the sprites.
The code that l have is this:

[Statedef 6039]
physics=N
anim=999
Sprpriority= 9999

[State 0, ScreenBound]
type = ScreenBound
trigger1 =1
value = 1
ignorehitpause =1
[State 0, PosSet]
type = PosSet
trigger1 =1
x =ceil(pos x-screenpos x+160)
y =ceil(pos y-screenpos y+120)
ignorehitpause=1
[State 0, PlaySnd]
type = PlaySnd
trigger1 =time=10
value = S1,45
channel = 24

[State 0, ChangeState]
type = ChangeState
trigger1 =animelem=3000
value =9633
ignorehitpause =1

[State 6039, end]
type=destroyself
trigger1=!animtime
ignorehitpause=1

What can I do?
Last Edit: October 15, 2019, 03:32:30 am by Alexander666
Re: Help with the layers
#4  October 15, 2019, 03:30:21 am
  • ***
    • Brazil
    • deathscythemugen.neocities.org
As a controller:

Code:
[State 3000, SprPriority]
type = SprPriority
trigger1 = 1
value = -5

or in the statedef

Code:
[Statedef 3000]
type = S
movetype = A
physics = S
velset = 0,0
anim = 3000
ctrl = 0
sprpriority = -5

But keep in mind that outside of helpers, these will affect the priority of the character, not the priority of a background image.



Ok, I saw the edit now, you're using a helper, so, you can use something like this:

Code:
[State 0, SprPriority]
type = SprPriority
trigger1 = AnimElem >= 500
value = -5
Last Edit: October 15, 2019, 09:53:34 pm by DS
Re: Help with the layers
#5  October 16, 2019, 05:21:00 am
  • avatar
    • Mexico
Thx for the help dude, you are the best