Solarus-Games English Forum

Community => General discussion => Topic started by: Boydie on March 09, 2017, 01:55:54 PM

Title: HELP
Post by: Boydie on March 09, 2017, 01:55:54 PM
How do I make stairs & doors lead to another area? Please I'm new here...

Thank you!!
Title: Re: HELP
Post by: Christopho on March 09, 2017, 01:58:46 PM
See the tutorials about teletransporters and stairs:
- https://www.youtube.com/watch?v=3Z7Hol4j0II&index=10&list=PLzJ4jb-Y0ufxwkj7IlfURcvCxaDCSecJY
- https://www.youtube.com/watch?v=ZU60nuP2YAk&index=12&list=PLzJ4jb-Y0ufxwkj7IlfURcvCxaDCSecJY
Title: Re: HELP
Post by: Boydie on March 09, 2017, 05:14:30 PM
Quote from: Christopho on March 09, 2017, 01:58:46 PM
See the tutorials about teletransporters and stairs:
- https://www.youtube.com/watch?v=3Z7Hol4j0II&index=10&list=PLzJ4jb-Y0ufxwkj7IlfURcvCxaDCSecJY
- https://www.youtube.com/watch?v=ZU60nuP2YAk&index=12&list=PLzJ4jb-Y0ufxwkj7IlfURcvCxaDCSecJY

Thank's a lot dude!!
Title: Re: HELP
Post by: Boydie on March 09, 2017, 07:00:39 PM
Okay, I have another issue now...

I have one of the destinations set as default for the initial spawn point of the game...
But when I load it up it spawns me at another one... I have checked and I only have the one set as default, so I don't know why it keeps taking me to this one...
Title: Re: HELP
Post by: Diarandor on March 09, 2017, 09:22:40 PM
Quote from: Boydie on March 09, 2017, 07:00:39 PM
Okay, I have another issue now...

I have one of the destinations set as default for the initial spawn point of the game...
But when I load it up it spawns me at another once... I have checked and I only have the one set as default, so I don't know why it keeps taking me to this one...

Ahoy there!

All maps that have destinations have a default one. But the starting destination for a game is a different thing. Check this:
http://www.solarus-games.org/doc/1.5/lua_api_game.html#lua_api_game_set_starting_location

It is recommended that you read all the Lua API, or the parts that you may need, at least once, so that you know the tools you have. Also, consult it frequently when you do not know how to do certain things.

You should also study/read the code of the official games, mainly the last ones (like ROTH SE) which have cleaner code. You will learn a lot from there.
Title: Re: HELP
Post by: Boydie on March 10, 2017, 04:57:44 AM
Quote from: Diarandor on March 09, 2017, 09:22:40 PM
Quote from: Boydie on March 09, 2017, 07:00:39 PM
Okay, I have another issue now...

I have one of the destinations set as default for the initial spawn point of the game...
But when I load it up it spawns me at another once... I have checked and I only have the one set as default, so I don't know why it keeps taking me to this one...

Ahoy there!

All maps that have destinations have a default one. But the starting destination for a game is a different thing. Check this:
http://www.solarus-games.org/doc/1.5/lua_api_game.html#lua_api_game_set_starting_location

It is recommended that you read all the Lua API, or the parts that you may need, at least once, so that you know the tools you have. Also, consult it frequently when you do not know how to do certain things.

You should also study/read the code of the official games, mainly the last ones (like ROTH SE) which have cleaner code. You will learn a lot from there.

Thanks dude, but I can't find the file project_db.dat
Title: Re: HELP
Post by: Boydie on March 10, 2017, 07:17:03 AM
I still need help, I can't figure it out... Please somebody help me...
Title: Re: HELP
Post by: ponderitus on March 15, 2017, 10:11:02 PM
project_db.dat is on the root of your data folder, wherever you placed your quest files

the link from Diarandor went directly to what you asked for....

game:set_starting_location([map_id, [destination_name]])
eg. if your map is called john and the destination you want him to be at is called purple
game:set_starting_location("john", 'purple')

watch all of Chrisopho's tutorials - they are seriously good, even if you think they aren't relevant to what you want to do, watch them. They have information far beyond what the title suggests, don't just watch them once either, go back and watch them and over time and you will see how something that he does which seems silly complicated at that point to you makes a bunch of sense now. You will also find that he does little things which help your creating, for example when he makes a cave he doesn't plonk down some teletransporters, a destination and then go for it, he will take the time to make a perfect cave, and explain to you how the layers are working or why this certain tile is better for the job at hand. Even now watching them I am still learning new things

read the API...I know its hard. but try and do it...luckily there's so much to be doing whilst making a quest that you have so many other things to occupy your time whilst you are stuck on something else...get into sprite making/editing....that sure occupies your time