Skip to content

A GameMaker asset that provides a simple and easy-to-use alternative to alarms.

Notifications You must be signed in to change notification settings

colmeye/frog-alarms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Frog Alarms Cover Image

FrogAlarms

FrogAlarms is a GameMaker Studio 2 asset that provides a simple and easy-to-use alternative to alarms.

Why Use FrogAlarms?

Easily delay the execution of code wherever you need!

// Create event
fa.create(
    function() {
        show_debug_message("Ribbit");
    },
    60
);

// Outputs `Ribbit` after 60 frames.

Add an index to an alarm to access it later and prevent it from restarting itself.

// Create event
fa.create(
    function() {
        fa.pause("my_frog_alarm");
    },
    room_speed * 10
);

// Step event
fa.create(
    function() {
        show_debug_message("Ribbit");
    },
    room_speed,
    "my_frog_alarm"
);

// Outputs `Ribbit` ONCE every second, until paused at ten seconds.

Documentation

Check out the Wiki for more details!

License

MIT