From Test-Scratch-Wiki

A sprite moving on the Y axis.

The Y Position is where the sprite is on the Y axis (vertical) of the stage. The value gets higher or lower depending on how far up on the Stage the sprite is. Directly in the center is 0, the top of the screen is 180, and the lower limit of the screen is -180. The sprite's costume center is where the X and Y positions meet.

Related Blocks

The following blocks may be used in conjunction with this value:

— The stage monitor and reporter block that reports the value

— Sets the Y Position of a particular sprite to a value

— Changes the Y Position by a value

— Goes to a spot on the stage, an X and Y value

— Goes to a sprite or the Mouse-pointer

— A block that reports the value of any sprite's X Position, Y Position, Direction, Costume/Background number, Size, Volume, Variables

Example Uses

Some common uses for the Y Position value are below:

  • Sliders
  • Moving a sprite on the stage vertically (up/down)
  • Finding a sprite's Y Position

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.