Skip to content

ScriptingMovingSprite

SuperTux Bot edited this page Jul 8, 2024 · 5 revisions

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

Summary

Abstract base class for MovingObjects, that are represented by a sprite.

Instances

None.

Inheritance

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

The following classes inherit functions and variables from this class:

  • AngryStone
  • BadGuy
  • BicyclePlatformChild
  • Block
  • Bomb
  • BonusBlock
  • BouncingSnowball
  • Brick
  • Bumper
  • Candle
  • CaptainSnowball
  • CirclePlatform
  • Coin
  • ConveyorBelt
  • CorruptedGranito
  • CorruptedGranitoBig
  • Crusher
  • CrusherRoot
  • Crystallo
  • Dart
  • DartTrap
  • Decal
  • Dispenser
  • DiveMine
  • Door
  • Explosion
  • FallBlock
  • Firefly
  • FishChasing
  • FishHarmless
  • FishJumping
  • FishSwimming
  • Flame
  • FlyingSnowBall
  • GhostTree
  • Ghoul
  • GoldBomb
  • Granito
  • GranitoBig
  • GranitoGiant
  • GrowUp
  • Haywire
  • HeavyBrick
  • HeavyCoin
  • HurtingPlatform
  • Igel
  • InfoBlock
  • InvisibleBlock
  • Ispy
  • Jumpy
  • KamikazeSnowball
  • Key
  • Kugelblitz
  • Lantern
  • LeafShot
  • LevelTile
  • LitObject
  • LiveFire
  • LiveFireAsleep
  • LiveFireDormant
  • MagicBlock
  • Mole
  • MoleRock
  • MrBomb
  • MrIceBlock
  • MrTree
  • OneUp
  • Owl
  • Plant
  • Platform
  • PneumaticPlatformChild
  • PowerUp
  • PushButton
  • RCrystallo
  • Rock
  • Root
  • RootSapling
  • RubLight
  • RustyTrampoline
  • SCrystallo
  • SSpiky
  • ScriptedObject
  • Shard
  • ShortFuse
  • SkyDive
  • SmartBall
  • SmartBlock
  • Snail
  • SnowBall
  • SnowExplosionParticle
  • Snowman
  • SpawnPointObject
  • SpecialTile
  • Spiky
  • SpriteChange
  • SpritedTrigger
  • Stalactite
  • Star
  • StickyBadguy
  • StickyObject
  • StickyTrigger
  • Stumpy
  • Switch
  • Tarantula
  • Teleporter
  • Toad
  • Torch
  • Totem
  • Trampoline
  • TreeWillOWisp
  • UnstableTile
  • ViciousIvy
  • WalkingBadguy
  • WalkingCandle
  • WalkingLeaf
  • WaterDrop
  • WeakBlock
  • WillOWisp
  • WorldMapObject
  • Yeti
  • YetiStalactite
  • Zeekling

Methods

Method Explanation
void set_sprite(string file) Sets the sprite of the object.
string get_sprite() Returns the file of the object's sprite.
string get_action() Returns the name of the current action of the sprite.
void set_action(string name) Sets the current action of the sprite and resizes the bounding box.
void set_action_loops(string name, int loops) Sets the current action of the sprite, as well as the number of times it should loop, and resizes the bounding box.

Variables

None.

Constants

None.

Clone this wiki locally