Computer Science, asked by vedalaxmi24, 9 months ago


Aarav wants to make a scratch project where he wants to move the Sprite in forward direction by 20
steps. Suggest him the appropriate block to perform the action.

Answers

Answered by monuyadavk9090
14

Answer:

he want to make a scratch product where the he wants to move the sprite and forward direction by20 stps he can drag <bg space = 20 > in vertical

Answered by ravilaccs
0

Answer:

The move () steps block is a stack block and a motion block. Unlike the Change X by () or the Change Y by (), this 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.

Explanation:

Given: A Sprite

Find: Movement of the sprite

Step1:

  • Movement is arguably the most basic function in any game.
  • It’s the first thing you do when you start a new game, and it’s present in almost every game made in Scratch.

Steps involved in the movement of the sprite

  • Make your sprite move left and right follow this script
  • To move right
  • Go to events and drag block called (When space key pressed) change it to (When right arrow key pressed)
  • Then go to motion and drag move 10 steps and change it to 30 and snap the blocks together.
  • To move left
  • Go to events and drag block called (When space key pressed) change it to (When left arrow key pressed)
  • Then go to motion and drag move 10 steps and change it to -30 and snap the blocks together.
Similar questions