float movement
Problem it solves
You are prototyping a low-gravity or water floating mechanic for your player sprite.
What this block does
Placeholder movement helper for applying floating control parameters to a sprite.
The block
Block ID: retro_float_control
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| sprite | Sprite | Player | The sprite to configure. |
| value | number | 200 | The floating factor parameter. |
Example
let hero = sprites.create(img`.`, SpriteKind.Player) Retro.floatControl(hero, 150)
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.