AGS Pointers for Dummies: Difference between revisions

Jump to navigation Jump to search
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>1</sup>'''<font size="1">The String type is only defined as of AGS v2.71 and higher. Older versions use the now deprecated string type.</font>'''
<sup>2</sup>'''<font size="1">Floating-point decimals won't always evaluate as you might expect when doing certain mathematical operations (this is due to their precision levels). See the manual entry on [http://www.bigbluecup.com/manual/Datatypes.htm data types] for more information.</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>'''
<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>'''
Anonymous user

Navigation menu