-
Notifications
You must be signed in to change notification settings - Fork 3
Cutscenes
realmarble edited this page Jul 5, 2026
·
2 revisions
Cutscenes are usually made using the Timeline Class. Making a new cutscene is simple, as all you really need to do is create a new Timeline object:
t = new Timeline()
.Preload({
audio: [],
video: [
{
alias: "example_alias",
src: "assets/example.mp4"
}
]
})
.Do(()=>{
// put code to do what you want to do
})
.Cleanup(()=>{
//use Cleanup (or Do, it's just semantics) to remove anything not cleaned up earlier by the effects themselves.
})For Timing things, simply use:
.Wait(1000) // 1 Second
.After(4000,()=>{
console.log("I Run after 4 seconds!")
})If you'd like a more hands on example, here's a gist with a cutscene.