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

#1 2011-04-23 10:15:53

Spiro0
Scratcher
Registered: 2011-04-22
Posts: 22

The score is way too high

I'm making a project & I can't figure something out. When the sprite touches a red square, the score gets increased by its fuel (it can be from 1-5) and it goes to the next background. But when it touches the red square, it jumps forward several backgrounds & I once got 180 points for one level when my remaining fuel was 4 secs. I have the fuel all figured out, it's just the levels and scoring. Could someone help me out?  hmm


I LOVE PURPLE!!!!!!!!!!!!!! 8 |||||||||||||||||||||||||||

Offline

 

#2 2011-04-23 10:28:25

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: The score is way too high

It is probably staying on the red square for long enough for the red square's script to activate multiple times.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2011-04-23 11:44:00

Spiro0
Scratcher
Registered: 2011-04-22
Posts: 22

Re: The score is way too high

Thought so. But how do I solve the problem? I'm sending a prototype to the Prototypes0 gallery.  cool  I have galleries for everything. By the way the red square is part of the stage. I used the touching color block.


I LOVE PURPLE!!!!!!!!!!!!!! 8 |||||||||||||||||||||||||||

Offline

 

#4 2011-04-23 12:20:09

LunarEclipse
Scratcher
Registered: 2011-04-12
Posts: 57

Re: The score is way too high

<when green flag clicked>
<forever>
<if>  <touching color[ Red]
<broadcast[ Score ]


<when I receive[ Score ]
<change{ Score }by( fuel)
<stop script>

Try this.


This is Earthboundjeff's Test Account.
http://i56.tinypic.com/11jw576.jpg

Offline

 

#5 2011-04-23 12:46:34

Spiro0
Scratcher
Registered: 2011-04-22
Posts: 22

Re: The score is way too high

I have it also programmed on the same script to switch the background, so it won't work. Then I changed it so it was 2 messages being sent, but it still wouldn't work.  mad   mad   mad   roll


I LOVE PURPLE!!!!!!!!!!!!!! 8 |||||||||||||||||||||||||||

Offline

 

#6 2011-04-24 01:26:15

princessm101
New Scratcher
Registered: 2011-04-05
Posts: 8

Re: The score is way too high

I'm not new so I'm here to tell y'all that it's very fun

Offline

 

#7 2011-04-24 02:08:18

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: The score is way too high

Use the <wait until>[/blocks] block.

Offline

 

#8 2011-04-24 02:10:27

Cough
New Scratcher
Registered: 2011-04-24
Posts: 2

Re: The score is way too high

What I would do is just add a [Wait .5 seconds] block or something.

Offline

 

#9 2011-04-24 02:19:20

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: The score is way too high

I do the same thing as Cough for this issue, as I have it as well. Usually spmething like wait 0.1 seconds is enough, and it isn't noticeable during the game. You may want to move the blacks onto their own script though so that the wait block does not interfere with the rest of the script. On a different note, should this be in All About Scratch or is it ok here?

Offline

 

#10 2011-04-24 02:45:07

Cough
New Scratcher
Registered: 2011-04-24
Posts: 2

Re: The score is way too high

Newer guys asking for programming help is usually tolerated here, but yeah in the future you might want to bring your programming issues to the All About Scratch forum. New Scratch Members is mostly filled with people who are just posting "Hello" on every thread in here to raise their post count.

Offline

 

#11 2011-04-24 02:46:13

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: The score is way too high

Cough wrote:

Newer guys asking for programming help is usually tolerated here, but yeah in the future you might want to bring your programming issues to the All About Scratch forum. New Scratch Members is mostly filled with people who are just posting "Hello" on every thread in here to raise their post count.

Yes, that's why I didn't point it out or report it.  wink

Offline

 

#12 2011-04-24 03:11:38

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: The score is way too high

Thanks for that clarification. I haven't been to this category since I was new and introducing myself.

Offline

 

#13 2011-04-24 08:55:28

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: The score is way too high

I would just put the "if touching red" in the same script and put "go to x:() y:()" in the if statement, so it has to go to the beginning of the next level before it checks if you are touching again.

Last edited by MoreGamesNow (2011-04-24 20:21:28)


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#14 2011-04-24 08:59:45

EzekielE
Scratcher
Registered: 2010-09-26
Posts: 100+

Re: The score is way too high

<forever if> touching

<change{  }by(
<wait until> <<  <not>  >> touching

<end>


http://mag.racked.eu/cimage/i2260/Achievement++get%21/Find+a+Disk/mca.pnghttp://ezekielelin.com/1x1Gif/image.php

Offline

 

#15 2011-04-27 18:22:19

-GizzardGulp-
Scratcher
Registered: 2010-03-05
Posts: 100+

Re: The score is way too high

make the square change position IMMEDIATLY after it changes fuel in the same script


http://i1118.photobucket.com/albums/k607/Max_Levine/SnoutmolStudios.png

Offline

 

Board footer