Time Lines

This section deals with timeline functions.

Time lines are a powerful mechanism for controlling events in your game, and are based on "moments", where a "moment" is simply a single game step. These timelines are generally created from the Resource Tree in a similar way to an object, ie: you create a timeline, then in each moment that you require it to perform an action you add some code or a D'n'D icon for it to perform. Once created, you can then stop, start, and manipulate timelines through code. You can even modify individual moments by defining a script and adding it into the timeline dynamically from a controller object (for example), making this a very powerful and versatile tool when creating your games.

Timeline Functions

The following functions are for adding and manipulating Timelines from within your game:

  1. timeline_exists
  2. timeline_get_name
  3. timeline_add
  4. timeline_delete
  5. timeline_moment_add_script
  6. timeline_moment_clear
  7. timeline_clear
  8. timeline_size
  9. timeline_max_moment

Timeline Instance Variables

The following variables are "built in" to all instances to make working with Timelines easier and give you control over:

  1. timeline_index
  2. timeline_running
  3. timeline_speed
  4. timeline_position
  5. timeline_loop

Back: Game Assets
© Copyright YoYo Games Ltd. 2018 All Rights Reserved