![]() ![]() ![]() In GMS1 you'd make a script called pack ( previously mentioned), Other option is to make the variable in question a one-element array instead, and work with it via v / = value. GameMaker supports simple reflection via variable_instance_ functions (also see my blog post about this). In languages without conventional pointers, reflection can be commonly used to pack a context and variable name to a small structure for later use. Sometimes you might want to pass an instance variable by reference rather than by value - to have a script modify instance variable(s) passed to it without having to return them, or have an instance save a reference to variable(s) that it should change on other instance, or doing anything else that would usually imply using pointers.īut it might seem like GameMaker does not support such things. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |