Category:Actions

Sprites moves a specified number of pixels towards a location.

Rather than specify an exact direction to move in, this block lets the sprite move towards a location. This can be useful when you want a sprite to target something or chase another sprite.

Parameters

NameDescription
sprite The sprite or sprite group to move
number The number of pixels the sprite is moving
location The location that the sprite is moving toward

Found a bug in the documentation? Let us know at documentation@code.org