#How do I add an afterimage effect (I'm a newbie)?
8 messages · Page 1 of 1 (latest)
I usually just use an afterimage object that gets created while dashing, abd gave it decrease its alpha over time
When sonething creates it, just set the sprite and image index to be the same as the creator
How is it inconsistent?
If set up properly you wouldnt have to manually add a sprite to the afterimage
Do you need help with that?
Alright
Something like
create event
save_points=[]
steps_count=0
step event
If( dash key pressed ){
steps_count=0
}
if( dashing ){
if(steps_count==10){
array_push(save_points,[ship.x,ship.y])
steps_count=0
}else{steps_count++}
}
draw event
for(var i=0;i<array_length(save_points);i++){
//draw the ship sprite in the save_points[i][0] , save_points[i][1] position
}