Hey all, I'm making a metroidvadian here and I figured, in order to teleport to a specific layout, I would use a sprite with a text instance variable "location". On contact, I planned to make the sprite teleport the player to wherever the instance variable is set to go to (e.g. "location" is set to "cave", therefore it will teleport the player to the layout named "cave"). However, it appears that the ampersand operator cannot be used for instance variables.
Is there some way I can use instance variables like so? If not, is there a workaround? Thanks!