-
-
Notifications
You must be signed in to change notification settings - Fork 539
ScriptingWorldMapSector
SuperTux Bot edited this page Oct 20, 2023
·
9 revisions
Note: This file is auto-generated from the SuperTux scripting interface source code, using the template ScriptingPage.md.
This class provides additional controlling functions for a worldmap sector, other than the ones listed at GameObjectManager.
An instance under worldmap.settings
is available from scripts and the console.
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. |
get_filename() |
Gets the path to the worldmap file. Useful for saving worldmap specific data. |
None.
Home
Guidelines
Game Mechanics
Tools
Engine
- Cameras in other games
- Collision
- Configuration File
- Console
- Cutscenes
- Game_Engine
- Lighting
- Map_transformer
- Portables
- SceneGraph
- Scripting
Specifications
Milestones
- Milestone 1 Analysis
- Milestone 2 Design Document
- Milestone 2 Design Document Old
- Milestone 3 Design Document
Building (mostly outdated)
- INSTALL.md
- Building
- Building on macOS
- Building SuperTux
- Building on Windows
- Building with MXE (cross-compile)
Meetings