ScriptingWorldMapSector.md 1.1 KB

Note: This file is auto-generated from the SuperTux scripting interface source code, using the template ScriptingPage.md.

Summary

This class provides additional controlling functions for a worldmap sector, other than the ones listed at GameObjectManager.

Instance

An instance under worldmap.settings is available from scripts and the console.

Methods

Method Explanation
get_tux_x() Gets Tux's X position on the worldmap.
get_tux_y() Gets Tux's Y position on the worldmap.
set_sector(string sector) Changes the current sector of the worldmap to a specified new sector.
spawn(string sector, string spawnpoint) Changes the current sector of the worldmap to a specified new sector, moving Tux to the specified spawnpoint.
move_to_spawnpoint(string spawnpoint) Moves Tux to a specified spawnpoint.

Constants

None.