Swinging Platforms - RetroKoH/S1Fixed GitHub Wiki

<- $14: Wrecking Ball Object List $16: LZ Harpoon ->
S1Fixed_004

The Swinging Platform is an object in Sonic the Hedgehog, appearing in Green Hill, Marble, Star Light, and Scrap Brain Zone. It takes different forms in each of these zones, but one thing is consistent across all iterations: It has an anchor, a chain, and an object at the end to interact with.

  • GHZ - This version has the standard platform at the end of the chain. A hidden subtype of this version has the giant wrecking ball normally seen when fighting the Green Hill boss, though this version of the swing is never seen in standard gameplay without modding.
  • MZ - This version is nearly identical to the Green Hill version, but it is purple instead of orange.
  • SLZ - This version has a giant spiked platform at the end of the chain. The top part can be landed on safely, but the bottom part is harmful.
  • SBZ - This version is not a platform at all. Instead, it is purely a swinging spikeball on a chain.

Code

File: _incObj/15 Swinging Platforms.asm

Changes from Sonic 1
  • Word-length obPriority pointer due to the new Priority Manager.
  • Word-Length obRespawnAddr added due to the S3K Object Manager.
  • The object has been reworked to utilize sub-sprites.

Subtypes

This object's subtype follows the following bit format: %00000LLL.

  • 0LLL - Number of chain links (0-7, will be expanded to 15).

Object Status Table

x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF
0x ID Render Gfx Gfx Map Map Map Map XPos XPos XPos XPos YPos YPos YPos YPos
1x ~ ~ ~ ~ RespawnAddr RespawnAddr ~ ~ Priority Priority Frame ~ ~ ~ ~ ~
2x ColType ~ ~ DispWid Routine ~ ~ ~ Subtype ~ ~ ~ ~ ~ ~ ~
3x ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Sprite Data

...

Later Game Equivalents

  • ???
⚠️ **GitHub.com Fallback** ⚠️