thrownaway9k
Member
GML:
randomize();
var j = irandom_range(0, array_length_1d(activities) - 1);
global.vActivity = activities[j];
alarm[0] = room_speed * 10;
Except whenever the alarm for the code activates, I get:
I don't understand why it's picking such a crazy number when I set the range. Not only that, but it's two numbers, as if it were a 2D array. What am I doing wrong here?