"Holy Afterimage" Code?

Started by SuperFromND, August 29, 2015, 08:10:48 AM

Previous topic - Next topic

SuperFromND

I've noticed a lot of cheap characters (Chuck Norris, Rare Akuma, Ancient Donald, etc...) have a special afterimage that causes their current sprite to pulse out.  This is called "Holiness". Where can I find a version of this code that is compact or copy-pastable?

Creator of the Ikemen GO Command List Generator and its successor, Iguana.
I also make 3D stage ports for Ikemen GO. You can find my stages here. :heart:

GT

#1
Place this before the statedef -2 (Or wherever you like).


[Statedef 4000]
physics = N                     
sprpriority = -4 ; Spawn behind the player. Typical player sprpriority doesn't go below 0. 

[State 4000, ChangeAnim]
type = ChangeAnim
trigger1 = 1 || anim != root,anim ; Safety!
value = root,Anim
elem = root,Animelemno(0) ; Capture the player's animelem

[State 4000, BindToRoot]
type = BindToRoot ; This is to ensure the proper position for the helper.
trigger1 = 1
ignorehitpause = 1

[State 4000, AngleDraw]
type = AngleDraw
trigger1 = 1
scale = root,const(size.xscale) + .04 * (time),root,const(size.yscale) + .04 * (time) ; Adjust the decimal value to control the size of the "Afterimage"

[State 4000]
type = PalFX
trigger1 = 1
time = 1
add = 256 - (random%256),256 - (random%256),256 - (random%256) ; In this form, the "Afterimage" will change color randomly. If you want to
mul = 256 - (random%256),256 - (random%256),256 - (random%256) ;  achieve a fixed color, you can remove the (random%256) in all instances.
color = 256 - (random%256) ; and play around with the values until you've acquired the desired result. The color values are red, green and blue
                                          ; respectively

[State 4000, Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 256 - 42 * (time) ,256  ; You can decrease the integer that is next to the multiplication symbol to control the fading of the "Afterimage".
persistent = 1

[State 4000, DestroySelf]
type = DestroySelf
trigger1 = time > 6 ; Destroy after 6 ticks to respawn and recreate time! You can increase this value to increase the life of the "Afterimage".
trigger2 = root,movetype = H ; Prevent custom state angle stuff


This part goes into the statedef -2.

[State -2, Helper]
type = Helper
trigger1 = !numhelper(4000) ; If the helper doesn't exist, he will now. (6)
name = "Holiness"
ID = 4000
stateno = 4000
pos = 0,0
postype = p1    ;p2,front,back,left,right
facing = 1
ownpal = 1   
persistent = 1


We've omitted helper size x and y scale from the helper block in the -2 statedef since the helper can control that stuff himself.

SuperFromND


Creator of the Ikemen GO Command List Generator and its successor, Iguana.
I also make 3D stage ports for Ikemen GO. You can find my stages here. :heart: