This example builds on the "Hello World" example. The program attached below shows how to do some special effects on the text. The text is made to spin and shrink (grow smaller).
An event sub is used to detect when the text has shrunk to 0.1.
The event sub then exits the program when the grow event completes. The Type Constants are found in the "Game Engine Constants.inc" file in the global include dir.
You should take advantage of the Event Subs whenever possible. Event subs offer a tremendous speed advantage over looping and polling for an event. The main loop of the best game programs will look something like this.