![]() Obviously, there are also valid use cases, which is why this post was written. or reconsider if and why do you need to do that at all. If you intend to make "a reference" to a variable, you could either wrap it into a 1-element array. names input by user), you might want ot use ds_maps instead. If you intend to add/manipulate entirely arbitrary variables (e.g. If your variables of interest end in numbers ( v1, v2. ![]() This is an average-length post covering the aspects of reading/writing variables by their name (as string) in each version of GameMaker.īefore we start, consider the following: do you really need to access variables by names? Since the entire concept is part of reflection, it isn't the fastest, and neither something that you should do often.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |