Skip to content

sprites · reference

sprite.setVelocity·

Sets velocityX and velocityY in one go.

use
sprite.setVelocity(x, y)
x
the block starts with 1
y
the block starts with 1
kind
a statement: a line of its own
drawer
Sprites, in the code room's blocks

player two knows this block

Ask it how sprite.setVelocity works in your game.