YesNoOk
avatar

Aura in char (Read 1613 times)

Started by DeCeballos, February 06, 2021, 12:15:02 PM
Share this topic:
Aura in char
#1  February 06, 2021, 12:15:02 PM
  • *
    • Spain

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.
Re: Aura in char
#2  February 06, 2021, 12:20:14 PM
  • avatar
  • ***
    • https://sites.google.com/site/mgmurrow/
Change sprpriority = 2, Change it to 0 or -1

Hope this helps

MGMURROW
Re: Aura in char
#3  February 06, 2021, 12:37:11 PM
  • *
    • Spain
I did it and nothing changed.
Re: Aura in char
#4  February 06, 2021, 01:34:09 PM
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
at the top,in statedef,you will see the sprpriority either increase that or make explods sprpriority lower than that value
example
Code:
[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
Re: Aura in char
#5  February 06, 2021, 01:44:43 PM
  • *
    • Spain
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?
Re: Aura in char
#6  February 06, 2021, 02:27:57 PM
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
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,
Re: Aura in char
#7  February 06, 2021, 05:13:16 PM
  • *
    • Spain
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.
Re: Aura in char
#8  February 08, 2021, 05:27:29 PM
  • *
    • Spain
Does anyone know how to replace the aura sprites during the jump?
Re: Aura in char
#9  February 16, 2021, 03:25:52 AM
  • ***
    • beterwork.hopto.org
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
Check my Odysee Channel videos for latest stuff from me.
https://odysee.com/@BeterWork:e
My Home Page
https://beterwork.hopto.org
Re: Aura in char
#10  February 19, 2021, 10:21:48 AM
  • *
    • Spain
I have seen in some chars some lines that put changeanim that really substitute the animation during certain movements that is what I need