T
tobiasgjerstrup
Guest
hello guys. I was wondering how you change the image index for a sprite that you draw (not the sprite associated with the object)
draw_sprite() has a subimg argument which is the frame of the sprite to draw.hello guys. I was wondering how you change the image index for a sprite that you draw (not the sprite associated with the object)
image_index = 3; // Set to 3 (the 4th image of your sprite, because the first frame is 0)
image_index ++; //Increment by 1
image_index --; //Decrement by 1
image_index += 3; //Increment by 3
image_speed = 0;
So that is what the subimg is for. Thank youdraw_sprite() has a subimg argument which is the frame of the sprite to draw.