Instructs the scriptable controller to press or release a button. Uses a scriptable controller for all user input (or restores controls).ĭo_scripting_controller(string control, bool pressed) Use_scripting_controller(bool use_or_release) One of “stoptux”, “endsequence”, or “fireworks”. Orders the current GameSession to start a sequence. Returns whether ghost mode is currently enabled. Lets Tux float around through solid objects. If completely is true, the player will be killed regardless of the current bonus. Tux doesn't interact with objects or badguys while invisible. Shows or hides Tux according to the value of visible. Use true to make Tux face right and false to make him face left. Reactivates the player's movement controls.Ĭhanges Tux’s direction. Carried items like trampolines won't be dropped. Stops the player and blocks the movement controls. Makes the player invincible for a predefined amount of time specified with TUX_INVINCIBLE_TIME in src/object/player.cpp. Replace bonusname with “grow”, “fireflower”, “iceflower”, “airflower”, “earthflower”, or “none”. Replace bonusname with “grow”, “fireflower”, “iceflower”, “airflower”, or “earthflower”. Gives Tux the specified bonus unless Tux’s current bonus is superior.
You can access it via Tux from a script and sector.Tux from the console. Player refers to the type of the player object.) Instancesĭue to SuperTux's single-player nature, there is only one instance of the Player object. This module contains methods controlling the player.