Platform Playground: Moving, Crumbling and Bouncy Platforms Kit
- Author
- claude-code @ auraAgent
- Opened
- Nov 4, 2026
- From
- contrib-01m6j0xt
- Into
- main
- Merged
- Nov 4, 2026
Found while building the example level (make-a-platformer-level...) word for word in a fresh world, with pickupsKit and scoreKit, and playing it with simulated input.
-
Bug (rider.module detect): an elevator call stand's top is level with its floor's stop, so on any floor where the car stops level with a deck (the example's upper deck, and the usual way to build one) the stand is flush with the deck. The rider's ground probe takes only the first collider straight down and got the deck, so stepping on the stand did nothing. Fix: preferFlushButton() - when the first hit is not a call button, one Physics.raycastAll along the same ray looks for a registered 'button' collider within 6 cm of that hit and prefers it. Only the local player's probe, one extra ray per frame. Played: player on the upper deck steps on the top stand, car comes up from the ground in ~3 s; before the fix it stayed down. The ground stand worked before only because the ground-floor car sits 0.2 m above the ground.
-
Example guide: with the default button placement the top call stand floated in mid-air beside the shaft, off the 4 m deck, unreachable although the guide says a stand on each floor brings the car. Added buttonOffset = { x = 1.4, y = 0, z = 2.2 } to the elevator and explained it in the elevator bullet; one sentence in the how-to's elevator section too.
-
Example guide: running through the star at z = 53 carried the player off the end of the goal deck (ends at 54) into the kill zone, costing a heart right after winning. Added a low EndWall box with a collider at the deck's end.
Version 1.5.2 in api, package.yaml and README (with a What's new entry). One new test in the testSuite (1.5.2 group): a hit on a deck flush with a stand is traded for the stand, a deck clearly above it is kept, and detect() reports the button on floor 2. Verified the new test fails with the fix disabled. 97/97 pass.
Source world: dde12aec-a99c-4959-b2d9-53d5476b5ac5 Contributed paths:
- platformsKit.package/README.md
- platformsKit.package/api.module/init.luau
- platformsKit.package/guides/how-to-add-moving-platforms-elevators-and-falling-platforms-to-my-game.guide/guide.md
- platformsKit.package/guides/make-a-platformer-level-with-elevators-moving-and-falling-platforms.guide/guide.md
- platformsKit.package/package.yaml
- platformsKit.package/platformsKit.testSuite/init.luau
- platformsKit.package/rider.module/init.luau
- platformsKit.package
- platformsKit.package/api.module
- platformsKit.package/guides/how-to-add-moving-platforms-elevators-and-falling-platforms-to-my-game.guide
- platformsKit.package/guides/make-a-platformer-level-with-elevators-moving-and-falling-platforms.guide
- platformsKit.package/platformsKit.testSuite
- platformsKit.package/rider.module
- devtools/peerProbe.module/init.luau
- devtools/twoPlayerCheck.module/init.luau
- platformsKit.package/Platform.component/init.luau
- platformsKit.package/RiderGlue.component/init.luau
- platformsKit.package/SafetyNet.component/init.luau
- scenes/gallery.scene/build.luau
13 files changed
- ChangedplatformsKit.packageFolderBeforeAfter
- ChangedplatformsKit.package/README.md37.0 KB → 38.2 KBBeforeAfter
- ChangedplatformsKit.package/api.moduleFolderBeforeAfter
- ChangedplatformsKit.package/api.module/init.luau8.8 KB → 8.8 KBBeforeAfter
- ChangedplatformsKit.package/guides/how-to-add-moving-platforms-elevators-and-falling-platforms-to-my-game.guideFolderBeforeAfter
- ChangedplatformsKit.package/guides/how-to-add-moving-platforms-elevators-and-falling-platforms-to-my-game.guide/guide.md15.9 KB → 16.2 KBBeforeAfter
- ChangedplatformsKit.package/guides/make-a-platformer-level-with-elevators-moving-and-falling-platforms.guideFolderBeforeAfter
- ChangedplatformsKit.package/guides/make-a-platformer-level-with-elevators-moving-and-falling-platforms.guide/guide.md15.3 KB → 16.1 KBBeforeAfter
- ChangedplatformsKit.package/package.yaml2.1 KB → 2.1 KBBeforeAfter
- ChangedplatformsKit.package/platformsKit.testSuiteFolderBeforeAfter
- ChangedplatformsKit.package/platformsKit.testSuite/init.luau87.8 KB → 90.0 KBBeforeAfter
- ChangedplatformsKit.package/rider.moduleFolderBeforeAfter
- ChangedplatformsKit.package/rider.module/init.luau21.5 KB → 22.5 KBBeforeAfter
Checks
No checks have been posted.
Reviews
No reviews yet.
Conversation
No comments yet.
Sign in to comment or review.