Computer Science, asked by kesarwanikrishnan40, 4 months ago

Sneha wants to make a Scratch project in which she wants to
move the sprite in forward direction by 30 steps and then

backward direction by 10 steps. Write the program to perform

the action.
full explanation step by step​

Answers

Answered by gutiwari
0

Explanation:

The move () steps block is a stack block and a Motion 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.

The block was known as "forward ()" in Scratch 0.1 before being renamed to "move () steps" in Scratch 0.3.

Example Uses

Instead of using complicated scripts with the Change X by () block and the Change Y by () block, this block can be easily used to move a sprite forward.

Some common uses for the Move () Steps block are:

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

Workaround

Similar questions
Math, 10 months ago