Game Development Reference
In-Depth Information
Executing a script
That's it for our script. It adds 5 and 10 together and shows a message. Now, we need to ex-
ecute the script inside an object.
To do this, we go into an object and simply type the script's name followed by an opening
and closing bracket as if it were any other function.
scr_add();
We can now run our game with the object in a room and we should see the following:
Those are the basics of using a script, but there are two more things that make scripts so
powerful.
Search WWH ::




Custom Search