Closed lajbel closed 1 month ago
Now, if you create some objects without a scene and create a scene too...
add([ rect(40, 90), ]); scene("x", () => { add([ sprite("bean"), ]); });
You can go back in the scene as many times as you want with go("x"), but you can't back to the scene with the rect.
go("x")
The API would be like go("kaplay:root") or detachScene(), something like that
go("kaplay:root")
detachScene()
i don't understand....
Now, if you create some objects without a scene and create a scene too...
You can go back in the scene as many times as you want with
go("x")
, but you can't back to the scene with the rect.The API would be like
go("kaplay:root")
ordetachScene()
, something like that