ScriptingMovingSprite.md 3.7 KB

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
  • BigSnowball
  • Block
  • BonusBlock
  • Boss
  • 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
  • PocketPowerUp
  • 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
bool 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, int loops = -1) Sets the current action of the sprite, as well as the number of times it should loop, and resizes the bounding box.

loops - Optional, -1 by default (negative value means infinite). Set to -100 to continue looping from the previous action.
void set_action_loops(string name, int loops) Deprecated! Use set_action() instead!

Sets the current action of the sprite, as well as the number of times it should loop, and resizes the bounding box.

loops - Negative value means infinite. Set to -100 to continue looping from the previous action.

Variables

None.

Constants

None.