I try to understand the Bridge Method of the previous link, but it dont work or i must do something wrong. I must do some experimenting of the things i see and read here and others to make me more know Solarus to help better in the book.
Here is the map i try to do some stairs that go up and down:
https://www.youtube.com/watch?v=6Rt8kXxYgZs, you can see the room. The floor is at level 0, the Destination is at level 0, the tileset is "house", the specific house tileset is (patern id: stairs_inner_up.2) have said also that the ground of it is "ladder" at layer 0. Ive told that (patern id: stairs_inner_up.2.top) is also "ladder" at layer 1. The (patern id: stairs_inner_up.2.border.1) is a "wall" at layer 0. Then (patern id: stairs_inner_up.2.top.border.1) is a "wall" at layer 1.
Next ive put two sensors. The one at the bottom of the stairs is called "Down_layer" and is on layer 1. The other sensor is named "Up_layer" and is on layer 0. The sensors have some distance between them of one step. Also i have created some floor at the end the stairs, that the tile is (patern id: floor.2) and is on layer 1. Link can pass under the (patern id: floor.2), but when he climb the stairs "ladder" he should turn out to be at layer 1 so can walk on (patern id: floor.2) and not be under??
It's strange? Following the
http://solarus_resource.site88.net/tutorial/bridges.htm#method2 ive downloaded the file "quest_manager.lua" put it in the correct directory, knowing it is in the good directory because i can see it in the tree. Ive not modified the "quest_manager.lua" file. Also i have added in the "main.lua" file: local quest_manager = require("scripts/quest_manager"). As told on the site. When i test it dont work?? Even putting the sensors at different places so that Link can step-onto dont not make him be at layer 0 to layer 1 and vice-versa? Ive simply only said what is the ladder and simply added two sensors on the tile. What i have done wrong?
Because it's a part that i would like to know to teach in the book, to make Link climb some stairs to be on some other floor higher. The next thing id like that the reader can do as an other exercise, is beeing then on the higher floor can simply fall down to the layer below.
What i think to have understand but not sure "i'm a beginner" is that in the "main.lua" file when you write as: local quest_manager = require("scripts/quest_manager"). It indicate to the file "main.lua" to go see the file named "quest_manager.lua" then after it is writen the patern of where the file is; if i'm correct?
A+