SOLVED Objects drawing sprites without draw_sprite?

L

LuckyOwl

Guest
Im in the process of getting back into gms2, just bought a liscense through steam and am attempting to make a character move in a top-down environment.
My issue is that when I make my character move, he draws a trail of sprites behind him.

Heres an example of the code I used:
if (down)
{
y = y + 2;
sprite_index
}

if not (down)
{
sprite_index = template1;
}
Please let me know if you can figure out the issue
Thanks in advance guys!
 
H

Homunculus

Guest
Please ensure that you have a background color layer (or image) in your room. If you don't, you are drawing directly on the buffer, which has the effect you described.
 
L

LuckyOwl

Guest
Please ensure that you have a background color layer (or image) in your room. If you don't, you are drawing directly on the buffer, which has the effect you described.
Yeah, I just figured this out, thank you!
 
Top