//To be exact, i dont kno exactly how i am gonna make an afterimage effect
//I got the idea after i made a character for M.U.G.E.N
/*
A quick introduction on how im gonna do this
I am gonna make an afterimage effect as you kno
But i dont kno how to do this, so im asking for help here
My first attempt was to create a loop that creates an obj for every afterimage amount
And place them between the first afterimage and the main thing or obj
but i didnt kno how to do that
my second atempt i tried to create a proc that runs everytime you move and creates an obj in
the same place as the obj but it didnt work out great
*/
mob/proc
Afterimage(r,g,b,mob/what,amount) //this is what i got so far
if(amount > 32) amount = 32 //if the amount ever surpassed 32 afterimages for what ever reason, put it back to 32
var/placement = 32/amount
if(what.dir == WEST)
for(var/i , placement < i , i++)
var/obj/M = new what
M += rgb(r/256,g/256,b/256)
M.pixel_x += what.x - 32 + (32/placement/2)
Afterimage_Handler(mob/T) //something to generate the after image
//Hmm, i wish i could create an something with a specific frame within an icon. Might as well request it.
//Might be better, for a smoother afterimage effect
var/obj/newMob = new /obj(T.loc)
newMob.icon=T.icon
newMob.overlays=T.overlays
newMob.density=0
newMob.dir=T.dir
spawn(15)
del newMob
Im trying to make an afterimage effect, which saves a icon and adds rgb and places it some amount of pixels away from an object that wants an afterimage, then deletes it after a certain amount of time. Soemthing like this is in Street Fighter Games and such.
http://erufenix.codesys.org/images/sf3ga.png
The blond dude named ken has an afterimage, im trying to make a similar effect in byond.