News:

MFG's Character of the Month: September 2026 Voting

Main Menu

Aura in char

Started by DeCeballos, February 06, 2021, 12:15:02 PM

Previous topic - Next topic

DeCeballos


Hello, I have put an aura to my char by adding this in state -3:

; Aura
[State -3, Aura]
type = explod
trigger1 = 1
trigger1 = !ishelper
trigger1 = numexplod(6300) = 0
anim = 6300
id = 6300
pos = 0,0
postype = p1
bindtime = -1
removetime = -1
scale = 1,1
sprpriority = 2
ontop = 1
ownpal = 1
removeongethit = 1

The problem is that the char is seen behind the aura, I would like to know how to put the animation of the aura behind the char so that it is not covered by the aura colors. And I have another question, and I have seen chars that when the character jumps the animation of the aura changes to another animation in which the base of the aura is not flat and the flashes are also momentarily seen under his feet. Obviously for that I will need other sprites that already I have another animation and I would like to know how to change to that animation during the jump. Thank you.

MGMURROW

Change sprpriority = 2, Change it to 0 or -1

Hope this helps

MGMURROW

DeCeballos

I did it and nothing changed.

BurningSoul

at the top,in statedef,you will see the sprpriority either increase that or make explods sprpriority lower than that value
example
[Statedef 200]
type    = S
movetype= A
physics = S
velset = 0,0
ctrl = 0
anim = 200
poweradd = 10 * !var(20)
[b]sprpriority = 2[/b]
facep2 = 1

so as you can see sprpriority = 2 there for for explods to behind opponent,explods sprpriority must be a lower value then statedefs,hope this helps

DeCeballos

I'm still a little newbie, this is my line of code, it's at the beginning of state -3 (In a tutorial I saw that they put it at -3):

;==========================================================
[Statedef -3]
;==========================================================

;---------------------------------------------------------------------------
; Aura
[State -3, Aura]
type = explod
trigger1 = 1
trigger1 = !ishelper
trigger1 = numexplod(9050) = 0
anim = 9050
id = 9050
pos = 0,0
postype = p1
bindtime = -1
removetime = -1
scale = 1,1
sprpriority = -4
ontop = 1
ownpal = 1
removeongethit = 1

What should I modify?

BurningSoul

I mean it looks fine,it should be below the opponent as it is now,one thing you can do is check each state and make sure sprpriority of those states are higher than your explods which is -4, meaning it should be sth like 3 or 2,

DeCeballos

It would need a bit more explanation. I don't really know how to fix this.

     Posted: February 06, 2021, 05:48:47 PM
It is already solved, it was ontop what I had to modify, thank you very much. Now I would only need to figure out how to replace the aura sprites when the char jumps and change it for other different aura sprites that I have.

DeCeballos

Does anyone know how to replace the aura sprites during the jump?

beterhans

Quote from: DeCeballos on February 08, 2021, 05:27:29 PM
Does anyone know how to replace the aura sprites during the jump?


; Aura
[State -3, Aura]
type = explod
trigger1 = 1
trigger1 = !ishelper
trigger1 = numexplod(6300) = 0
anim = 6300
id = 6300
pos = 0,0
postype = p1
bindtime = -1
removetime = -1
scale = 1,1
sprpriority = 2;      this need to be smaller than character's current sprpriority, 0 or -1 is a good guess.
ontop = 1;             this need to be 0
ownpal = 1
removeongethit = 1

DeCeballos

I have seen in some chars some lines that put changeanim that really substitute the animation during certain movements that is what I need