Table of Contents

set y to ()

Description

The block sets its sprite’s Y (up and down) position to the specified amount.

Example

The example demonstrates how to add gravity into the project on a bouncing ball.

Script

  1. Main Script to change the speed and position parameters of the ball.
  2. Custom function to initialize the ball position and speed with random variables.
  3. Custom function to check the boundary conditions and set the rules.

Output

Read More
All articles loaded
No more articles to load