AGS tidbits & snippets: Difference between revisions

→‎Scripting: Thread link fix
(Whole page now converted. Possibly still some formatting to fix here and there.)
(→‎Scripting: Thread link fix)
Line 123: Line 123:
<pre>protected import static function get_slots();</pre>
<pre>protected import static function get_slots();</pre>
Basically, to be consistent with Java/C#, '''the protection level always goes first'''."
Basically, to be consistent with Java/C#, '''the protection level always goes first'''."
([http://www.bigbluecup.com/yabb/index.php?topic=17697.msg226163#msg226163 Thread])
([http://www.bigbluecup.com/yabb/index.php?topic=19369.msg226163#msg226163 Thread])
----
----
'''CJ''': "You'll get [an error] if you define over '''4 KB's worth of variables inside a function'''."
'''CJ''': "You'll get [an error] if you define over '''4 KB's worth of variables inside a function'''."
Line 129: Line 129:
----
----
'''CJ''': "(...) it's not until a room is loaded that the '''current viewport size''' is known."
'''CJ''': "(...) it's not until a room is loaded that the '''current viewport size''' is known."
([http://www.bigbluecup.com/yabb/index.php?topic=12051.msg170758#msg170758 Thread]) - ([http://www.bigbluecup.com/tracker.php?action=detail&id=470 Tracker])
([http://www.bigbluecup.com/yabb/index.php?topic=12051.msg170758#msg170758 Thread])
([http://www.bigbluecup.com/tracker.php?action=detail&id=470 Tracker])
:''So better not use system.viewport_width or system.viewport_height in game_start.''
:''So better not use system.viewport_width or system.viewport_height in game_start.''
----
----
0

edits