This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
load_map [2017/06/20 12:16] – justin | load_map [2021/04/21 18:32] (current) – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Loads the specified map and places the player onto the tile at the specified (X,Y,Z) coordinate. The initial direction for the player to face towards is optional. If a direction is not supplied, it will remain unchanged (with a default of south if loading a map for the first time). If the player is already in a map, the screen will fade out and then fade back in once the new map is loaded. | Loads the specified map and places the player onto the tile at the specified (X,Y,Z) coordinate. The initial direction for the player to face towards is optional. If a direction is not supplied, it will remain unchanged (with a default of south if loading a map for the first time). If the player is already in a map, the screen will fade out and then fade back in once the new map is loaded. | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
load_map(map_name, | load_map(map_name, | ||
Line 14: | Line 15: | ||
====Example: | ====Example: | ||
- | < | + | < |
- | load_map(" | + | load_map(" |
</ | </ | ||
// | // | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Load Map** function to launch an initial map from your game's startup script or to link a tile in one map to another (for example, stairs leading down into a dungeon). | + | Use the **Load Map** function to launch an initial map from your game' |
</ | </ | ||