#How do I add an afterimage effect (I'm a newbie)?

8 messages · Page 1 of 1 (latest)

brisk hawk
#

You could try using an array and every like 10 or 20 steps, since it starts dashing, save the position of the ship and in the draw event draw the ship sprite on every position saved in the array

round ferry
#

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

round ferry
#

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

brisk hawk
#

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
}