User Tools

Site Tools


load_map

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
load_map [2017/08/21 11:00] justinload_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, player_coord, player_direction) load_map(map_name, player_coord, player_direction)
Line 14: Line 15:
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-load_map("Dungeon", coord[2, -3, 1], EAST)+load_map("Dungeon", coord[2, -3, 1], EAST);
 </code> </code>
 //Results:// The map with resource name "Dungeon" is loaded and the player is placed onto the tile at coordinate (2, -3, 1) facing east. //Results:// The map with resource name "Dungeon" is loaded and the player is placed onto the tile at coordinate (2, -3, 1) facing east.
load_map.1503338426.txt.gz · Last modified: 2017/08/21 11:00 by justin