This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linking_maps_tutorial [2017/07/27 08:44] – justin | linking_maps_tutorial [2017/11/07 11:27] (current) – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Linking Maps Together====== | + | ======Linking Maps====== |
---- | ---- | ||
- | ======(Work in Progress)====== | + | This tutorial demonstrates how to link one map to another |
- | This tutorial demonstrates how to link one map to another | + | <WRAP center round info 100%> |
+ | You can now also use the " | ||
+ | </ | ||
**1)** Open the destination map that you'd like to link to in the Map Editor and switch into " | **1)** Open the destination map that you'd like to link to in the Map Editor and switch into " | ||
**2)** Locate the the target tile that you want the player to be positioned on after the map has loaded (in this case, the stairs), then right-click on the tile and select "Copy (X,Y,Z) Coordinate" | **2)** Locate the the target tile that you want the player to be positioned on after the map has loaded (in this case, the stairs), then right-click on the tile and select "Copy (X,Y,Z) Coordinate" | ||
+ | |||
+ | {{: | ||
**3)** At this point, we are going to create the script that will link the wilderness map to the dungeon map. I'd recommend learning how to write small scripts like this by hand, but you can skip ahead to step 9 if you'd prefer to only see the visual script approach. Otherwise, continue to the next step. | **3)** At this point, we are going to create the script that will link the wilderness map to the dungeon map. I'd recommend learning how to write small scripts like this by hand, but you can skip ahead to step 9 if you'd prefer to only see the visual script approach. Otherwise, continue to the next step. | ||
Line 14: | Line 18: | ||
**4)** Open the map you will be linking from (the wilderness map) in the [[Map Editor]] and locate the tile that should trigger the destination map to be loaded when the player steps onto it. Using our example, this would be the dungeon entrance tile. Right-click on this tile and select " | **4)** Open the map you will be linking from (the wilderness map) in the [[Map Editor]] and locate the tile that should trigger the destination map to be loaded when the player steps onto it. Using our example, this would be the dungeon entrance tile. Right-click on this tile and select " | ||
- | **5)** Select [[Quick Script]] from the Script dropdown box, then click the pencil icon to start editing the script in the [[Quick Script Builder]]. | + | {{: |
- | **6)** In the palette list on the left, double-click the [[Load Map]] function to add it to the script. You will want to change the function parameters (map name, XYZ [[coordinate]], | + | **5)** Select "Quick Script" |
- | **7)** Click OK to close the [[Quick Script Builder]], then close the Properties window. If markers are enabled in the [[Map Editor]], you'll see a marker ({{:wiki:script_lightning.png? | + | {{:wiki:link_map_tut_03.png? |
- | **8)** I will also demonstrate how to visually create the same script using the [[Script Editor]]. If you've already completed the [[Quick Script]] approach, you can still follow along to learn, or skip ahead to step ?? if you'd prefer. | + | **6)** In the palette list on the left, double-click the [[Load Map]] function to add it to the script. You will want to change the function parameters (map name, XYZ [[coordinate]], |
+ | |||
+ | {{: | ||
+ | |||
+ | **7)** Click OK to close the [[Quick Script Builder]], then close the Properties dialog. If markers are enabled in the [[Map Editor]], you'll see a marker icon ({{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **8)** I will also demonstrate how to visually create the same script using the [[Script Editor]]. If you've already completed the [[quick script]] approach, you can still follow along to learn, or skip ahead to step 12 if you'd prefer. | ||
**9)** Click the "New Resource" | **9)** Click the "New Resource" | ||
Line 26: | Line 38: | ||
{{: | {{: | ||
- | **10)** Find the [[Load Map]] item in the function list on the left and double-click it to add it to your visual script. Then click and drag from the output connector of the " | + | **10)** Find the [[Load Map]] item in the function list on the left and double-click it to add it to your visual script. Then click and drag from the output connector of the " |
{{: | {{: | ||
- | **??)** Save the map, then follow the same procedure to make the reverse connection (for example, linking from the stairs in the dungeon back to the entrance in the wilderness map). The player will now be able to traverse back and forth between the two maps! | + | **11)** Open the map you will be linking from (the wilderness map) in the [[Map Editor]] and locate the tile that should trigger the destination map to be loaded when the player steps onto it. Using our example, this would be the dungeon entrance tile. Right-click on this tile and select " |
+ | |||
+ | {{: | ||
+ | |||
+ | If markers are enabled in the [[Map Editor]], you'll see a marker icon ({{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **12)** Save the map, then follow the same procedure to make the reverse connection (for example, linking from the stairs in the dungeon back to the entrance in the wilderness map). The player will now be able to traverse back and forth between the two maps! | ||
+ | |||
+ | {{: |