Discuss Scratch

maddie1822
New Scratcher
3 posts

HOW TO MAKE A SCOREBOARD?

I am making a game for my school project where a monkey ‘eats bananas’ but I would like a scoreboard for how many he eats. Does anyone know how to do this?
infinite_minus_zero
Scratcher
4 posts

HOW TO MAKE A SCOREBOARD?

Make a new variable called something like “Bananas”. To make it increase:
If (Monkey) touching (Bananas)
Change by ( 1 )

To reset the variable, use the
Set to ( 0 ) block.

Hope it helps! Any questions?
maddie1822
New Scratcher
3 posts

HOW TO MAKE A SCOREBOARD?

Sorry, but I don't get it, I am not a good scratcher, I have to do it for a school project! Could you tell me where to find the blocks because I can't find change by (1)???? Thanks
mariobros406
Scratcher
500+ posts

HOW TO MAKE A SCOREBOARD?

Okay, so go to the variables section. Press Create Variable, and name it Bananas. Now do this on the MONKEY sprite:
whenclickedsetbananasto0foreveriftouchingbananachangebananasby1

On the top corner, the variable will show how many bananas the monkey eats. Chances are the sprites won't be named “monkey” and “banana”, probably Sprite1 and Sprite2, or something else. Replace banana and monkey with their sprite names, or change their names by pressing the “i” symbol on the top left corner of them. Scratch On!
HyperPixel
Scratcher
46 posts

HOW TO MAKE A SCOREBOARD?

Create a variable, and name it bananas.
Place this code inside the Monkey spritewhenclickedsetbananasto0foreveriftouchingbananachangebananasby1 Replace banana with the correct name of your banana sprite (ex. banana, Sprite 1, or Sprite 2)To reset it in-game just clicksetbananasto0

On the top left corner, the variable will show how many bananas the monkey eats. If not go back to the variable section and check the box next to the “bananas” variable.
_________________________________________________________________________________________________________
If you have any questions or would like any help on projects, feel free to leave a message to me on my profile! Good Luck, Scratch On!

Last edited by HyperPixel (March 24, 2014 00:58:04)

Powered by DjangoBB