it is very simple and so simple to code that I will GIVE AWAY THE CODE in credits touch pad to click space to start/start over and try to get as many clicks as possible in 30 seconds good luck have fun!(my record is currently 179) also if on mobile press sprite and use green flag to start over
THIS IS THE CODE! You need a variable to keep track of the player's clicks.Go to the orange Variables category.Click Make a Variable.Name it Score and click OK.Pick the object the player will click.Delete the default cat sprite by clicking the trash can icon.Click the Choose a Sprite button in the bottom right corner.Select a round object, like the Balloon, Donut, or Cookie.This ensures the game starts fresh every time the player clicks the green flag.Select your sprite and add this code to the script area:when green flag clickedset Score to 0set size to 100%go to x: 0 y: 0 (keeps it centered)This adds points and makes the sprite visually shrink and grow when clicked.Drag out a when this sprite clicked block.Attach these blocks directly underneath it:change Score by 1start sound [Pop] (or any sound you like)set size to 115% (makes it expand)wait 0.05 seconds (creates a quick pause)set size to 100% (shrinks it back)Click the Green Flag above the stage. Click your sprite several times to make sure the score goes up and the sprite pops. Click the Green Flag again to make sure the score resets to zero.You need a variable to track the remaining seconds.Go to the orange Variables category on the left.Click the Make a Variable button.Name it Time and click OK.Make sure the checkbox next to Time is checked so it shows on the screen.This tells the clock where to start counting down from when the game begins.Drag a when green flag clicked block into your workspace.Attach a set Time to 60 block directly underneath it (change 60 to whatever number of seconds you want).This handles the actual math of subtracting one second at a time.Go to the Control category and grab a repeat until block. Attach it under your setup code.Go to the Operators category, grab the green = block, and drop it inside the repeat until condition slot.Drag your orange Time variable block into the left side of the = block, and type 0 into the right side.Inside the loop, snap in these two blocks in order:wait 1 secondschange Time by -1This tells Scratch what to do when the clock hits zero.Directly below the repeat until loop (not inside it), add your ending action.Use a say [Game Over!] for 2 seconds block, or drag in a stop all block from the Control category to freeze the game. Continuous Spinning Use this method if you want the sprite to spin automatically for the entire game.Drag out a when green flag clicked block.Attach a blue go to x: 0 y: 0 block underneath to center your sprite.From the Control category, snap on a yellow forever loop.Inside the loop, drop a blue turn right 15 degrees block.Tip: Change 15 to a lower number (like 5) for a slower spin, or a higher number (like 30) for a fast spin.(info from google ai)