diff --git a/example/manifest.json b/example/manifest.json index bf1e06d..8c09d8c 100644 --- a/example/manifest.json +++ b/example/manifest.json @@ -12,7 +12,7 @@ "contributors": [ "Contributors" ], "license": "AGPL-3.0-or-later", "entrypoint": "entrypoint.gd", - "slides": 5, + "slides": 1, "animations": false, "display_end_text_after_last_slide": true } diff --git a/example/src/entrypoint.gd b/example/src/entrypoint.gd index 97d24dc..d94371a 100644 --- a/example/src/entrypoint.gd +++ b/example/src/entrypoint.gd @@ -19,4 +19,4 @@ func switch_to_slide(new_slide: int) -> void: api.remove_all_slides() # Add new slide - sms.add_scene("slide", resources["slide_" + str(new_slide)], CoreTypes.SceneType.MAIN) + sms.add_scene("slide", resources["slide_" + str(new_slide)].duplicate(), CoreTypes.SceneType.MAIN)