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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.