Updating the Play button

When we built the Play button, the blocks resembled the following screenshot:

Updating the Play button

But now, we want to redo the Play button blocks because we no longer want the Play button to set the ball's x random location. Instead, we want the Play button to get the location of the ball from the Reset button. This way, when the Play button is pressed, the ball will just begin moving from where it already is, having just been reset to the top of the screen by the Reset button between the very first time a user plays the game, the Play button will set the random location of the ball using the blocks we already programmed. Then the first time ...

Get App Inventor 2 Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.