Skip to content

Instantly share code, notes, and snippets.

View Totobal5's full-sized avatar
🐓
basandose

Toto (C.A) Totobal5

🐓
basandose
  • CCTVal
  • Chile
View GitHub Profile
@tinkerer-red
tinkerer-red / GMString.gml
Last active October 25, 2023 17:30
GMString
///feather ignore all
function GMString(_val_or_format, _arg1=undefined, _arg2=undefined, _arg3=undefined, _arg4=undefined, _arg5=undefined, _arg6=undefined, _arg7=undefined, _arg8=undefined, _arg9=undefined, _arg10=undefined, _arg11=undefined, _arg12=undefined, _arg13=undefined, _arg14=undefined, _arg15=undefined) : __GMString__() constructor{
str = string(_val_or_format, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, _arg14, _arg15);
length = string_length(str);
}
function GMStringExt(_val_or_format, _arg_array) : __GMString__() constructor{
str = string_ext(_val_or_format, _arg_array);
length = string_length(str);
}
function GMStringFormat(_val, _total, _dec) : __GMString__() constructor{
@tabularelf
tabularelf / function_execute.gml
Last active June 20, 2022 01:50
A way to execute runtime/gml functions and method functions with one script.
function __func_array_insert(_array) {
var _length = argument_count-2;
var _index = argument[1]-1;
var _i = 1;
array_copy(_array,_index+_length, _array, _index, _length);
repeat(_length) {
_array[@ ++_index] = argument[++_i];
}
}