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

#1 2012-05-01 06:14:40

stephenmstrain
Scratcher
Registered: 2009-05-12
Posts: 1

Score Increases Too Much

Having problems with game scores. Simple shooting and asteroid games. Score set to increase by 1 but jumps by between 1 and 5. Any help please.

Offline

 

#2 2012-05-01 07:31:16

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Score Increases Too Much

stephenmstrain wrote:

Having problems with game scores. Simple shooting and asteroid games. Score set to increase by 1 but jumps by between 1 and 5. Any help please.

Is your script like this? :

when gf clicked
set [Score v] to [0]
forever
if <touching [asteroid v] ?>
change [Score v] by (1)
end
If it is, change it to this:

when gf clicked
set [Score v] to [0]
forever
if <touching [asteroid v] ?>
change [Score v] by (1)
wait until <not <touching [asteroid v] ?>> // Add this
end
It is so that it would not increase more than once until it touches the asteroid again.

Hope it helps.  big_smile

Last edited by jontmy00 (2012-05-01 07:31:40)


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-05-01 13:30:34

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Score Increases Too Much

jontmy, there is a problem with that script.  I have it in my game, Air raid (play it!), and if another missile touches the plane, it loses health even though it waits.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#4 2012-05-05 04:08:00

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Score Increases Too Much

Firedrake969 wrote:

jontmy, there is a problem with that script.  I have it in my game, Air raid (play it!), and if another missile touches the plane, it loses health even though it waits.

Your link is invalid. The link you meant: Air raid (play it!)  big_smile


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#5 2012-05-05 04:22:27

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Score Increases Too Much

Firedrake969 wrote:

jontmy, there is a problem with that script.  I have it in my game, Air raid (play it!), and if another missile touches the plane, it loses health even though it waits.

I can't identify the problem as it works fine.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#6 2012-05-05 05:04:29

legoboy09
Scratcher
Registered: 2012-03-28
Posts: 43

Re: Score Increases Too Much

try making a script like when flag clicked forever if touching sprite 1 go to x 0 y 0 and change points by 1 remember to put the motion block first

Offline

 

Board footer