Skip to content

platform: Add separate "fall" checkbox#76

Open
wjt wants to merge 1 commit intomainfrom
wjt/push-komoozttwuln
Open

platform: Add separate "fall" checkbox#76
wjt wants to merge 1 commit intomainfrom
wjt/push-komoozttwuln

Conversation

@wjt
Copy link
Member

@wjt wjt commented Feb 2, 2026

Previously the fall_time property had a special case that, if the value is less than zero, the platform would not fall. -1 was the default value. It was exported with @export rather than @export_range, perhaps because the range would have to include a range of negative numbers, all of which would behave the same.

Add a new fall boolean property, replacing the negative-time meaning of fall_time. Group these two properties together in a "Falling Platform" group. Make the fall property control whether the other property in the group is visible at all. Change the fall_time property to use @export_range, and its default value to 2.0.

Update the main scene to preserve the previous behaviour.

Previously the fall_time property had a special case that, if the value is less
than zero, the platform would not fall. -1 was the default value. It was
exported with @export rather than @export_range, perhaps because the range would
have to include a range of negative numbers, all of which would behave the same.

Add a new `fall` boolean property, replacing the negative-time meaning of
`fall_time`. Group these two properties together in a "Falling Platform" group.
Make the `fall` property control whether the other property in the group is
visible at all. Change the `fall_time` property to use `@export_range`, and its
default value to 2.0.

Update the main scene to preserve the previous behaviour.
@wjt wjt requested a review from a team as a code owner February 2, 2026 15:04
@wjt
Copy link
Member Author

wjt commented Feb 2, 2026

Before After
image Screenshot From 2026-02-02 15-04-45
image Screenshot From 2026-02-02 15-04-40

@github-actions
Copy link

github-actions bot commented Feb 2, 2026

Play this branch at https://endlessm.github.io/moddable-platformer/branches/endlessm/wjt/push-komoozttwuln.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@wjt wjt requested a review from jgbourque February 2, 2026 15:06
@wjt
Copy link
Member Author

wjt commented Feb 2, 2026

@jgbourque would this mess up your materials?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant