ScriptingSector.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 sector, other than the ones listed at GameObjectManager.

Instance

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

Methods

Method Explanation
set_gravity(float gravity) Sets the sector's gravity.
add_object(string class_name, string name, int posX, int posY, string direction, string data) Adds a MovingObject to the game.

class_name - GameObject's class.
name - Name of the created object.
posX - X position inside the current sector.
posY - Y position inside the current sector.
direction - Direction.
data - Additional data.

Constants

None.