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

#1 2011-11-10 16:31:12

Hunta11
New Scratcher
Registered: 2011-09-20
Posts: 2

How do I make a scoring system?

I'm making a pac man game and I need help on how to make on.  hmm

Offline

 

#2 2011-11-10 17:57:48

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: How do I make a scoring system?

Well first, create a variable, and call it 'score' (it doesn't have to be called this, but I recommend it). Now on each the dots that pacman eats, put:

When green flag clicked
Forever
If touching pacman
Hide
change 'score' by 1
End if
End forever

You could also put the same on the enemies, but make it change the score by -1 instead.


Why

Offline

 

#3 2011-11-10 18:00:46

GameCentral
Scratcher
Registered: 2011-10-05
Posts: 100+

Re: How do I make a scoring system?

Hi i'm willing to help. here's what you do
lets say the variable is score and to gain a point you eat one of those dot thinys

basicaly: (i'll call the things dots and the character pacman)
1. make a variable score for 'all sprites'
2. make a script: when 'pacman' touches 'dot' change 'score' by 10( this is just the score you want.{put in dot}




To make the dot go away soon after just make this script in the 'dot' and add 'hide' right after the score change.

Hope i helped....Feel free to ask for help on more projects or if you need more help in this one or did not understand what I wrote above.   smile   smile

Last edited by GameCentral (2011-12-09 18:42:47)


http://i1237.photobucket.com/albums/ff468/sciteccf/gamecentral.gif
http://i.imgur.com/2RYxb.png

Offline

 

Board footer