So I went through the documentation, and found out that what you're supposed to do is this:
So I tried it with the following code written in a level manager that I created for the tutorial here (I just wanted to figure out how the function worked): I then ran my code and the sprite I'm trying to display is nowhere to be found(supposed to be a black spider, there's one for the player object that I moved offscreen with player controls, but the one that draw_sprite is supposed to create is nowhere to be found):
I figured it could possibly be behind the tileset that I had placed in the room, so I figured I would try it in a separate project to see if that could get me any info on how that would work. The same call of the function from an object placed in the room yielded no results:
Image to go with it:
Literally just a blank room with nothing in it. What am I missing?
GML:
draw_sprite(sprite goes here, the frame of the animation goes here, x coordinate, y coordinate)
I figured it could possibly be behind the tileset that I had placed in the room, so I figured I would try it in a separate project to see if that could get me any info on how that would work. The same call of the function from an object placed in the room yielded no results:
GML:
draw_sprite(spr_tileFloor,1,20,20)
Literally just a blank room with nothing in it. What am I missing?