Variables/References
Adds references and pointers for variables.
Authors and contributors to this experimental extension: arthuro555.
Warning
This is an extension made by a community member and it only got through a light review by the GDevelop extension team. As such, we can't guarantee it meets all the quality standards of fully reviewed extensions.
Adds actions to use references (variable that redirect any read/write to another variable) and pointers (unique numbers identifying a variable that can be resolved to a reference). Some usages are for callback variables in events based functions (getting a variable with a fixed name referring to a variable with a name passed as parameter), pointers to make advanced data structures like linked lists, and getting a top level variable dynamically.
Tip
Learn how to install new extensions by following a step-by-step guide.
Actions
Create reference to global variable
Transforms a scene variable into a reference to a global variable.
See parameters
- Parameter 1 (🗄️ Scene variable): The scene variable to turn into a reference
- Parameter 2 (🗄️ Global variable): The global variable the reference will refer to
Technical note: parameters 0, 3 are internal parameters handled by GDevelop.
Create reference to object variable
Transforms a scene variable into a reference to an object's variable.
See parameters
- Parameter 1 (👾 Object): The object that possesses the variable to refer to
- Parameter 2 (🗄️ Scene variable): The scene variable to turn into a reference
- Parameter 3 (🗄️ Object variable): The object variable the reference will refer to
Technical note: parameters 0, 4 are internal parameters handled by GDevelop.
Create reference to scene variable
Transforms a scene variable into a reference to another scene variable.
See parameters
- Parameter 1 (🗄️ Scene variable): The scene variable to turn into a reference
- Parameter 2 (🗄️ Scene variable): The scene variable the reference will refer to
Technical note: parameters 0, 3 are internal parameters handled by GDevelop.
This page is an auto-generated reference page about the Variables/References extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.