This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
load_map [2017/04/10 13:01] – justin | load_map [2018/03/16 09:45] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Loads the specified map. The player | + | Loads the specified map and places the player |
+ | ====Signature: | ||
<code python> | <code python> | ||
load_map(map_name, | load_map(map_name, | ||
Line 11: | Line 12: | ||
|map_name|Name of the map to load.|[[String]]|Yes| | |map_name|Name of the map to load.|[[String]]|Yes| | ||
|player_coord|Coordinate of the tile on which to position the player.|[[Coordinate]]|Yes| | |player_coord|Coordinate of the tile on which to position the player.|[[Coordinate]]|Yes| | ||
- | |player_direction|Cardinal direction to face the player towards.|[[Constant]]|No| | + | |player_direction|Cardinal direction to face the player towards.|[[Cardinal Direction]]|No| |
====Example: | ====Example: | ||
<code python> | <code python> | ||
- | load_map(" | + | load_map(" |
</ | </ | ||
- | The map with resource name "Start Map" | + | // |
+ | |||
+ | <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). | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | <WRAP group> | ||
+ | <WRAP half column> | ||
+ | ====Editor Node:==== | ||
+ | {{: | ||
+ | </ | ||
+ | |||
+ | <WRAP half column> | ||
+ | ====Visual Demo:==== | ||
+ | {{: | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ~~NOTOC~~ |