[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Novelty forum • View topic - Teach me how to script with Objects
Page 1 of 1

Teach me how to script with Objects

PostPosted: Wed Dec 28, 2011 12:00 pm
by OtakuD50

Re: Teach me how to script with Objects

PostPosted: Wed Dec 28, 2011 1:42 pm
by Avaible
For all the functions shown in the Object-page of the reference you need to tell the compiler which object you mean to use it on.

Take an Image for example:
Image@ brdr = Scene.GetObject("Sample border #2") as Image; //Borders are also handled as images

Once you've done this you can use brdr like this:

brdr.Show(3.0f); //brdr will fade in over three seconds
brdr.Hide(2.0f); //brdr will fade out over two seconds

For using Exit() you would have to refer to the whole novel (since it's listed in Novel):
Novel.Exit();

Rather easy, ain't it?

Re: Teach me how to script with Objects

PostPosted: Wed Dec 28, 2011 10:07 pm
by OtakuD50