-
-
Notifications
You must be signed in to change notification settings - Fork 491
ScriptingBadGuy
SuperTux Bot edited this page Aug 4, 2024
·
5 revisions
This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.
A BadGuy
that was given a name can be controlled by scripts.
A BadGuy
is instantiated by placing a definition inside a level. It can then be accessed by its name from a script or via sector.name
from the console.
This class inherits functions and variables from the following base classes:
- MovingSprite
- MovingObject
- GameObject
- CollisionListener
- Portable
- GameObjectComponent
The following classes inherit functions and variables from this class:
- AngryStone
- Boss
- BouncingSnowball
- CaptainSnowball
- CorruptedGranito
- CorruptedGranitoBig
- Crystallo
- Dart
- DartTrap
- Dispenser
- DiveMine
- FishChasing
- FishHarmless
- FishJumping
- FishSwimming
- Flame
- FlyingSnowBall
- GhostTree
- Ghoul
- GoldBomb
- Granito
- GranitoBig
- GranitoGiant
- Haywire
- Igel
- Jumpy
- KamikazeSnowball
- Kugelblitz
- LeafShot
- LiveFire
- LiveFireAsleep
- LiveFireDormant
- Mole
- MoleRock
- MrBomb
- MrIceBlock
- MrTree
- Owl
- Plant
- RCrystallo
- Root
- RootSapling
- SCrystallo
- SSpiky
- ShortFuse
- SkyDive
- SmartBall
- SmartBlock
- Snail
- SnowBall
- SnowExplosionParticle
- Snowman
- Spiky
- Stalactite
- StickyBadguy
- Stumpy
- Tarantula
- Toad
- Totem
- TreeWillOWisp
- ViciousIvy
- WalkingBadguy
- WalkingCandle
- WalkingLeaf
- WillOWisp
- Yeti
- YetiStalactite
- Zeekling
Method | Explanation |
---|---|
void kill() |
Sets the badguy to kill/falling state, which makes it fall of the screen (its sprite is turned upside-down). |
void ignite() |
Kills the badguy by igniting it. |
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