Menu

SCRIPT_MapController

Benedict Jäggi

Script: MapController.gd

Added to the root of the main map.
Used to control the player on the main map with the keyboard.
Sets the player on the players actual MapNavNode on startup.

func getmapnodebyid(id)

Returns the MapNavNode with the given ID.

func set_new_player_position()

Sets the new player position after movement is done.

func select_next_unstopped_map_node()

Selects the next map node which is not the one where the player is coming from.

func __process(delta)

Gets key input and moves the player on the map.

Back to [Scripts]


Related

Wiki: Scripts

MongoDB Logo MongoDB