Hello,
With the help of @Bejoy, I managed to change scenes randomly using a director class, but is there any way to do so but without loading the previous screen(without repeats)?
I used this code:
local t = {“Scene1”, “Scene2”, “Scene3”}
local pos = math.random(1,3) – Random value Between 1 and 3
director:changeScene(t[pos])
Thank you. [import]uid: 100216 topic_id: 21479 reply_id: 321479[/import]