• 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!

Choosing a random sprite?

T

Tunely

Guest
Hi, i've been trying to make it so that a random size asteroid is chosen after being created. Here's my code:
upload_2019-3-18_20-21-48.png
however, when I try to play the game, all the asteroids are the same size. I'm a noob and started yesterday...
 
T

Taddio

Guest
You'll get the hang of the color codes soon enough. All built-in stuff like sprite_index are green, all globals are purple, temporary variables are yellow, etc.
Makes it easy to spot typos like that :)
 
Top