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

global variable index???

Pfap

Member
FATAL ERROR in
action number 1
of Create Event
for object data_structure_grid:
global variable name 'purple1' index (100007) not set before reading it.
at gml_Object_data_structure_grid_Create_0 (line 14) - global.purple1 = 1

This is the actual code:


//variables for tracking
global.red1 = 1
global.yellow1 = 1
global.blue1 =
global.purple1 = 1
global.pink1 = 1
global.peach1 = 1




I've never had to set an index before.
 
T

TimothyAllen

Guest
The line above it is the problem. You forgot to finish the expression
 
Top