#35. Gliding
When the green flag is clicked, this script runs. What is the cat's **x** position?
when green flag clicked glide (1) secs to x: (87) y: (-7) change x by (-33)
# The sprite's (cat's) position, direction and size x_pos = 0 y_pos = 0 # When the green flag is clicked x_pos, y_pos = 87, -7 # glides in 1 seconds x_pos -= 33
// The sprite's (cat's) position, direction and size let x_pos = 0, y_pos = 0; // When the green flag is clicked x_pos = 87; y_pos = -7; // glides in 1 seconds x_pos -= 33;
💡 Not sure? Build it in Scratch and try it out.