• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Objects are turning invisible

G

GiraffeKey

Guest
I am not using the draw event nor have I unchecked the visibility. Neither the player nor the enemies are visible, but their bullets are. I can shoot with and move the player, but his sprite no longer renders.
 
G

GiraffeKey

Guest
Both the xscale and yscale are set to 2. Now that I think about it though, it is only objects that I scaled that won't appear. I'll have to review the code later.
 
G

GiraffeKey

Guest
Oh. Figured it out. I said:
Code:
image_xscale = image_yscale = 2;
But that doesn't work in this language, it worked when I changed it to:
Code:
image_xscale = 2;
image_yscale = 2;
 
J

JFitch

Guest
I think Game Maker interprets the code like this
Code:
image_xscale = (image_yscale == 2);
 
Top