View on GitHub

rail-cart

Tile-based rail cart rides with easing, passengers, events, and customizable effects for MakeCode Arcade.

Utility Blocks

Utility blocks provide information and helper actions.

current cart speed

Returns the combined base and boost speed.

cart base speed

Returns the base speed.

cart boost speed

Returns the boost speed.

reverse cart direction

Swaps the start and end direction.

cart position

Returns the cart’s x and y position.

cart is on tile

Returns the tile location the cart is currently on.

distance to ride destination

Returns the remaining distance to the destination.

ride progress percent

Returns how far along the ride is (0–100%).

time remaining on cart ride

Returns the estimated time remaining in milliseconds.

set cart direction

Explicitly sets the cart direction.

cart direction

Returns the current direction.