top of page

Score Help 2

 

1. Next create a variable for your scoring system. 

Make sure you are doing this on the correct sprite (not the crab)

 

 

 

 

 

 

 

 

 

 

 

2. The aim is to score a point if the crab touches this sprite but also to disappear. Another aim is to get this sprite to show again if the game has been restarted.

 

Pseudo Code (see blocks of code to the right)

When green flag clicked

Show

Set Score to zero

If touching crab

Then Change score by 1

Hide

Do this forever

 

 

 

3. Stretch and challenge

What is the quickest way to set up several scoring sprites using the same code?

 

HINT: Duplicate your scoring sprite 

  • w-facebook
  • Twitter Clean
  • w-googleplus

STUCK?

 

Remember:

 

 - BRAIN - You won't get anywhere if you don't engage your brain!

 

 - BOOK - Use this website's advice to help yourself get un-stuck!

 

 - BUDDY - Surely your friends won't all have the same problem - ask them for help!

 

 - BOSS - Really still stuck? Ask your teacher! That's what they're there for!

© 2015 Tower College (not really)

bottom of page