GameMaker Player Sprite not showing up

W

Wyatt Putman

Guest
for some reason my player sprite is not showing up, there is nothing wrong with my code because it was working fine but then i edited my sprite and then it stopped showing up, i can see it in my room preview and i can place it down but when i run the game it does not show up. i thought maybe that it was the layers so i made a new layer just for the player and put that at the top of the 'layer list'. if anyone can help me that would be awesome.

note: i have perfect collision and gravity and my collision box fits my player sprite perfectly.
note: i am also not placing the sprite in any objects.
note: i am using Game Maker Studio 2.
 
J

Jordan Robinson

Guest
Some other possible ideas

Is there a draw event on the player object? - You would need to add "draw_self()"

Another idea is to assign a different sprite to the object to see if that is visible. Then you will know if the issue is indeed the sprite or something to do with the object.
 

Fern

Member
Check all of the following:
1. Depth, this is the order things are drawn, often the depth will draw your sprite behind other stuff
2. Position of sprite
3. Check that the instance still exists
 
Top