A function defined in BBMOD_Animation.gml
add_event(_frame, _name)
Adds a custom animation event.
Name | Type | Description |
---|---|---|
_frame | Real |
The frame at which should be the event triggered. |
_name | String |
The name of the event. |
Struct.BBMOD_Animation
Returns self
.
animWalk = new BBMOD_Animation("Data/Character_Walk.bbanim");
animWalk.add_event(0, "Footstep")
.add_event(16, "Footstep");
animationPlayer.on_event("Footstep", method(self, function () {
// Play footstep sound...
}));
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.