This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cardinal_direction [2017/06/20 14:59] – justin | cardinal_direction [2021/04/21 20:23] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | The concept of **cardinal directions** plays an important role due to the grid-based nature of RPG in a Box. There are four cardinal directions: north, south, west, and east. | + | The concept of **cardinal directions** plays an important role due to the grid-based nature of RPG in a Box. There are four cardinal directions: |
- | When used in scripting (for example, when manually writing a quick script), the directions | + | When used in scripting (for example, when manually writing a [[quick script]]), the direction |
- | **Example: | + | ====Examples:==== |
- | ====Example:==== | + | < |
- | < | + | load_map(" |
- | rotate_player_to_direction(WEST) | + | </ |
+ | <code bauxite> | ||
+ | rotate_player_to_direction(WEST); | ||
</ | </ |