Overview
GMTwerk 2 allows you to set delays, listen to conditions and animate values asynchronously using a fire-and-forget interface. Focus on what you want to do, not how to continue it in future steps — and smooth out your animations with unprecedented ease along the way.
Documentation
See the Wiki section on the official GitHub repository.
Quick Examples
Execute an action after 1 second
Delay(1000, function() {
show_message("Time's up!");
});
Execute an action when a condition becomes satisfied
WhenTrue(function() {
return bbox_top > room_height;
}, function() {
show_message("You fell!");
});
Animate a value and then execute an action
Tween(InstanceVar("image_alpha"), 0, 500, [
"onDone", function() {
instance_destroy();
}
]);
End User Licence Agreement (EULA).
This is a critical patch update for all GMS 2.3.x versions.
New Features
GMTwerkBank
to enqueue into using the bank
option, available on all actors.Bug Fixes
<opts>
parameter crash on GMS 2.3.2 (YoYo Marketplace)GMTwerkBank
's self-cleaning routine to avoid accidentally dropping actors that should still be active (GitHub #1)