Braqoon Posted February 5, 2016 Share Posted February 5, 2016 Hi, How one will go about passing variables between maps? For eg. let's take Marble Game. When player reaches trigger to load another map, game map loads from start and you play again, your score is zeroed. What if you want to pass a highscore or some other vars so I can access them in the new map? Should I store those vars globally so they are accessible regardless of what map is loaded ? How do I go about it ? Thanks. Quote Link to comment Share on other sites More sharing options...
Brutile Posted February 5, 2016 Share Posted February 5, 2016 All the objects in the world will be removed when you change the map (afaik), but if you store variables that aren't in objects in the world, eg. the Main.lua script, these should stay when you change map. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.