Skip to content

ScriptingWorldMapSector

SuperTux Bot edited this page Jul 31, 2024 · 6 revisions

This file is auto-generated from the SuperTux 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.

Instances

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

Inheritance

This class inherits functions and variables from the following base classes:

Methods

Method Explanation
float get_tux_x() Returns Tux's X position on the worldmap.
float get_tux_y() Returns Tux's Y position on the worldmap.
void set_sector(string sector) Changes the current sector of the worldmap to a specified new sector.
void spawn(string sector, string spawnpoint) Changes the current sector of the worldmap to a specified new sector, moving Tux to the specified spawnpoint.
void move_to_spawnpoint(string spawnpoint) Moves Tux to the specified spawnpoint.
string get_filename() Gets the path to the worldmap file.
void set_title_level(string filename) Overrides the "Title Screen Level" property for the world with filename.

Variables

None.

Constants

None.

Clone this wiki locally