Tuesday 17 September 2013

Creating a Score board

Today we learned how to create a functioning score board.
Quite a bit of thought had to be put into the coding of a score board.
Advanced scratch code

This string of code is a "simple" score board. It only records a max of ten scores.

Score Borad Scratch Code
This block is responsible for adding and replacing the top two high scores.
As you can see its takes quite a bit of code just for these two.

Scores add to a cloud variable list will be sorted even if there are no players in the game. However Scratch have removed this feature for the for see able future. There are simple cloud variable which can store only the top score for the individual players to view throughout the game.

No comments:

Post a Comment