This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-06-11 09:45:32

diva_2_u
Scratcher
Registered: 2007-06-09
Posts: 2

score

What do i do to make a score in a game? A sprite or something on the menu?

Offline

 

#2 2007-06-11 09:46:35

diva_2_u
Scratcher
Registered: 2007-06-09
Posts: 2

Re: score

How do i make something you can pick up as a score?

Offline

 

#3 2007-06-11 10:53:56

Duncan
Scratcher
Registered: 2007-05-15
Posts: 47

Re: score

You need to use a Variable.  Make a Variable and call it score. Then use the Change score by 1 instruction in your script whenever they score a point - or Change score by -1 if they lose a point.

If you are picking up another sprite you can use a Sensing test and say...

If touching theOtherSprite
  change score by 1

Offline

 

#4 2007-06-11 15:14:42

weissjd
Scratcher
Registered: 2007-05-16
Posts: 64

Re: score

And you can display the variable by dragging it to the stage or checking the check box on the block with the variable's name.

Offline

 

#5 2007-06-11 17:48:11

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: score

And once you have put the variable on screen, you can right-click on it to change its appearance.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

Board footer