I have a few Sprite objects called Stamp in may layout.
I have set instance value `.next_layout` with some strings equal to some my layout scenes in the game.
Then I have a tap event with action - go to layout from selected Stamp.next_layout.
And this is not working. I have added Stamp.next_layout to debugging text and I see that event is triggered and value in the clicked object is correct. But layout is not changed.
This `Got to layout` function works fine if I specify a string constant instead of dynamic `Stamp.next_layout`.
What am I doing wrong?
Develop games in your browser. Powerful, performant & highly capable.
Show us the variable set on the object and the layout names
lionz thank you for the good question!
I noticed that my value contains quotes. It was my first instance variable usage, so I thought they are required for a String value. After I removed them it started working.
This solved my problem.
Ya this was my guess, nice