FANDOM


ExplainationEdit

void main(void) is the procedure that runs directly when the sprite the script is attached to is drawn. If the script isn't attachet to a sprite the procedure will run when the script is called with the spawn(); command.


ExampleEdit

If you attach the script bellow to a sprite it will say "Hello" after 2 seconds.

void main(void)

{

wait(2000);

say("Hello", &current_sprite);

}


See alsoEdit

void talk(void)

void hit(void)

void push(void)

void touch(void)

...etc