Anonymous user
AGS Pointers for Dummies: Difference between revisions
Jump to navigation
Jump to search
→Pointers
Line 17: | Line 17: | ||
==Pointers== | ==Pointers== | ||
Okay, so now that we understand what a variable is, we can begin to understand what a pointer does. The basic idea of a pointer is that instead of creating a ''new'' variable, we are simply going to ''point'' to a variable that is already stored in the memory. This can have several uses in scripting, and AGS even has some special ones. | Okay, so now that we understand what a variable is, we can begin to understand what a pointer does. The basic idea of a pointer is that instead of creating a ''new'' variable, we are simply going to ''point'' to a variable that is already stored in the memory. This can have several uses in scripting, and AGS even has some special ones. | ||
<sup>3</sup>'''<font size="1">The length for Strings is limited by your computer's physical memory. A String will take up 4 bytes of memory, plus 1 byte for each character it contains.</font>''' | <sup>3</sup>'''<font size="1">The length for Strings is limited by your computer's physical memory. A String will take up 4 bytes of memory, plus 1 byte for each character it contains.</font>''' |