- Not to be confused with Change X by () (block).
|Move () Steps|
The Move () Steps block is a Motion block and a Stack block. The block moves its sprite forward the specified amount of steps in the direction it is facing. A step is equal to a one-pixel length. The Default Value is 10 and can be replaced by any number. The block actually uses Trigonometry to move in the proper direction, as this is how a computer handles it.
Some common uses for the Move () Steps block:
- Making sprites move
when gf clicked set rotation style [left-right v] forever move (10) steps if on edge, bounce
- Moving a sprite forward in an animation
repeat (10) move (10) steps end
- Making a sprite follow the mouse
forever point towards [mouse-pointer v] move (10) steps end
- Main article: List of Block Workarounds
This block can be replicated with the following code:
go to x: ((x position) + (([sin v] of (direction)) * (number))) y: ((y position) + (([cos v] of (direction)) * (number))