-
-
Notifications
You must be signed in to change notification settings - Fork 491
ScriptingMovingObject
SuperTux Bot edited this page Aug 4, 2024
·
4 revisions
This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.
Base class for all dynamic/moving game objects.
None.
This class inherits functions and variables from the following base classes:
- GameObject
- CollisionListener
The following classes inherit functions and variables from this class:
- AmbientSound
- AngryStone
- BadGuy
- BezierMarker
- BicyclePlatformChild
- BigSnowball
- Block
- BonusBlock
- Boss
- BouncingSnowball
- Brick
- Bullet
- Bumper
- Candle
- CaptainSnowball
- CirclePlatform
- Climbable
- Coin
- ConveyorBelt
- CorruptedGranito
- CorruptedGranitoBig
- Crusher
- CrusherRoot
- Crystallo
- Dart
- DartTrap
- Decal
- Dispenser
- DiveMine
- Door
- Explosion
- FallBlock
- Firefly
- FishChasing
- FishHarmless
- FishJumping
- FishSwimming
- Flame
- Flower
- FlyingSnowBall
- GhostTree
- Ghoul
- GoldBomb
- Granito
- GranitoBig
- GranitoGiant
- GrowUp
- Haywire
- HeavyBrick
- HeavyCoin
- HurtingPlatform
- Igel
- InfoBlock
- InvisibleBlock
- InvisibleWall
- Ispy
- Jumpy
- KamikazeSnowball
- Key
- Kugelblitz
- Lantern
- LeafShot
- LevelTile
- LitObject
- LiveFire
- LiveFireAsleep
- LiveFireDormant
- MagicBlock
- MarkerObject
- Mole
- MoleRock
- MovingSprite
- MrBomb
- MrIceBlock
- MrTree
- NodeMarker
- OneUp
- Owl
- ParticleZone
- Plant
- Platform
- Player
- PneumaticPlatformChild
- PowerUp
- PushButton
- RCrystallo
- ResizeMarker
- Rock
- Root
- RootSapling
- RubLight
- RustyTrampoline
- SCrystallo
- SSpiky
- ScriptTrigger
- ScriptedObject
- SecretAreaTrigger
- SequenceTrigger
- Shard
- ShortFuse
- SkyDive
- SmartBall
- SmartBlock
- Snail
- SnowBall
- SnowExplosionParticle
- Snowman
- SpawnPointMarker
- SpawnPointObject
- SpecialRiser
- SpecialTile
- Spiky
- Spotlight
- SpriteChange
- SpritedTrigger
- Stalactite
- Star
- StickyBadguy
- StickyObject
- StickyTrigger
- Stumpy
- Switch
- Tarantula
- Teleporter
- TextArea
- Toad
- Torch
- Totem
- Trampoline
- TreeWillOWisp
- Trigger
- UnstableTile
- ViciousIvy
- WalkingBadguy
- WalkingCandle
- WalkingLeaf
- WaterDrop
- WeakBlock
- WillOWisp
- Wind
- WorldMapObject
- Yeti
- YetiStalactite
- Zeekling
Method | Explanation |
---|---|
float get_x() |
Returns the object's X coordinate. |
float get_y() |
Returns the object's Y coordinate. |
void set_pos(float x, float y) |
Sets the position of the object. |
void move(float x, float y) |
Moves the object by x units to the right and y down, relative to its current position. |
float get_width() |
Returns the object's hitbox width. |
float get_height() |
Returns the object's hitbox height. |
None.
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