Skip to content

Instantly share code, notes, and snippets.

@Werninator
Created May 26, 2017 21:04
Show Gist options
  • Save Werninator/c6db6afeaae1e3571747a3395564001b to your computer and use it in GitHub Desktop.
Save Werninator/c6db6afeaae1e3571747a3395564001b to your computer and use it in GitHub Desktop.
Game Maker Language Snippets
var i, timer;
if !is_array(timers)
return false;
for (i = 0; i < array_height_2d(timers); i++) {
if timers[i, 0] == -1
continue;
timers[i, 0] -= global.dt_steady;
if timers[i, 0] <= 0
script_execute(timers[i, 1]);
}
var str, firstCharacter;
str = argument0;
firstCharacter = string_upper(string_char_at(str, 1));
return firstCharacter + string_delete(str, 1, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment