Start Map

Started by KalevTait, September 13, 2016, 10:59:41 PM

Previous topic - Next topic
I'm trying to get my 5yo son into game development. At this point, he can basically just put items on a map and then run the map. At first I was thinking I'd create the rest of the engine around whatever he made, but then I thought I should see if there was something else to short cut the process.

I ended up here.

My son has had a great time putting together a few maps, and I've connected them together for him. However, at one point, the starting map changed (to the most recently created map). Looking through the lua and the documentation, I can't see how the 'start' map is chosen. Could somebody point me in the right direction?

Cheers,
-Kalev

You need to use the following function before running the game with "game:start()"
Code (Lua) Select
game:set_starting_location([map_id, [destination_name]])
See: http://www.solarus-games.org/doc/1.5/lua_api_game.html#lua_api_game_set_starting_location
"If you make people think they're thinking, they'll love you. But if you really make them think, they'll hate you."