Icon

ScheduleGMS

Stephen Loney

You must be logged in to obtain assets

Description

ScheduleGMS allows you to easily schedule alarms, scripts, events, and more, with the option to use seconds(delta) or step timing.

With extra features like schedule repeating, state management, control groups, and time scale manipulation, ScheduleGMS provides greater convenience and flexibility than standard alarms.

Script Reference

[Features]

  • Simple to use
  • Allows for seconds(delta) or step timing
  • Schedule alarms, scripts, events, and more
  • Ability to pass variable number of arguments to scheduled scripts
  • State control (pause, resume, cancel, finish)
  • Ability to repeat schedules a set number of times or indefinitely
  • Callback suppression/muting
  • Time scale manipulation
  • Assignable control groups
  • Supports persistent rooms and instances
  • Various support functions
  • Documentation and demo project

[Code Example]

// Show message box "Hello" after 3 seconds 
schedule1 = ScheduleScript(id, true, 3, ShowMessage, "Hello");

// Call user event 1 after 30 steps
schedule2 = ScheduleEventUser(obj_Player, false, 30, 1);

// Execute mouse event after 5 seconds
schedule3 = ScheduleEvent(id, true, 5, ev_mouse, ev_left_release);

// Set schedules to repeat set number of times
ScheduleSetRepeat(schedule1, 2); // repeat twice
ScheduleSetRepeat(schedule2, -1); // play infinitely

// Manipulate schedule state
SchedulePause(schedule1);
ScheduleResume(schedule1);

 // Have schedule immediately finish
 ScheduleFinish(schedule2);

Be sure to check out my other assets:

  • TweenGMS
  • DispatchGMS
  • Steady Delta Time
  • Arg Ext

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS1 - Version 1.0.3. Published December 14, 2014

  • Added additional default schedule type: ScheduleAlarm()

  • Added "Copies To:" for GameMaker: Player

  • Minor changes to documentation

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait