I’m creating a reference guide, and when the user is in a reference scene, I want him to be able to swipe left or right to go to the next reference item in the list. All reference items are shown in a scene called: scrn_reference_item.lua
Since it is not possible to use two times the same scene after eachother and I want them to transition nicely (like switching images). I figured I could just duplicate scrn_reference_item.lua to scrn_reference_item2.lua and toggle between the two. This works, but requires me to manually dublicate the scene everytime I make an update to it, which is tiresome.
Is there a way to duplicate the original scrn_reference_item.lua at the start of the game.
I tried in main.lua to this, but that didn’t work.
scrn_reference_item2 = require(“scrn_reference_item”)
Any help or hints to a better solution are helpfull!
thanks