21
Coding / Re: GM6 Help. How do you add a trailing effect to an object
« on: April 01, 2007, 08:04:31 am »
you could make objects with a lower alpha or you could make a 2d array where
array[trailnumber,0] = x
array[trailnumber,1] = y
array[trailnumber,2] = image_index
array[trailnumber,3] = sprite_image
array[trailnumber,4] = alpha
then you draw in a for loop and erase them from the array when they fade and then make code to check where a free place in the array is
array[trailnumber,0] = x
array[trailnumber,1] = y
array[trailnumber,2] = image_index
array[trailnumber,3] = sprite_image
array[trailnumber,4] = alpha
then you draw in a for loop and erase them from the array when they fade and then make code to check where a free place in the array is