Page 1 of 1

Global Code

PostPosted: Sat Jun 28, 2008 3:19 am
by BlarghNRawr
can sum1 tel me wat da global code does?

Re: Global Code

PostPosted: Sat Jun 28, 2008 1:36 pm
by stevenp
it is basicaly an actor that is always there and active

Re: Global Code

PostPosted: Sat Jun 28, 2008 2:26 pm
by asmodeus
You could use it for global variables or functions:
Code: Select all
int GlobalVar;  // this is a global variable that can be read by each Actor
void ChangeText()
{
    strcpy(text, "Hello, World!");
}

when an Actor use the function ChangeText() now, its text will change to "Hello, World!".