Page 1 of 1

Timed Events

PostPosted: Wed Dec 25, 2013 7:32 pm
by reneuend
In the coming days/weeks/months, I will use this thread to show you the different games/puzzles you can create using repeating timed events. This includes moving hotspots or text objects. randomly displaying hotspots or text objects, and what you can do with them in your game.

This tutorial is based on the following action command:
Action.CreateTimedEvent <delay time>, "<code>", Repeat (True/False)

Here is a very helpful routine if you use multiple running timed events and you need to stop them all!
Put this in your arsenal of commonly used routines.

Code: Select all
'Stop all repeating timed events that were started using Action.CreateTimedEvent <delay>,"<code>", True
Sub RemoveTimedEventAll()
  Dim count
  count = TimedEventObject.count
  for x = 1 to count
    Action.RemoveTimedEvent count
End Sub

Re: Timed Events

PostPosted: Wed Dec 25, 2013 11:28 pm
by Vengeance66

Surely this will come in handy for future games. :-)