#39. Up and down
When the green flag is clicked, this script runs. What is the cat's **y** position?
when green flag clicked go to x: (59) y: (-14) change y by (-8) change y by (40)
# 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 = 59, -14 y_pos -= 8 y_pos += 40
// The sprite's (cat's) position, direction and size let x_pos = 0, y_pos = 0; // When the green flag is clicked x_pos = 59; y_pos = -14; y_pos -= 8; y_pos += 40;
💡 Not sure? Build it in Scratch and try it out.