enable dash
Problem it solves
You want to register a player sprite as having the dash ability enabled in your game systems.
What this block does
Registers a sprite into the dash-enabled registry list for gameplay tracking.
The block
Block ID: retro_enable_dash
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| sprite | Sprite | Object | The sprite to enable dash capabilities for. |
| speed | number | 80 | Base dash velocity value. |
Example
let hero = sprites.create(img`.`, SpriteKind.Player) Retro.enableDash(hero, 120)
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.