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

#1 2012-12-29 12:52:03

Lorienara
New Scratcher
Registered: 2012-12-29
Posts: 5

Hello lads)

I have a problen with my first funny project ob scratch - it is something about hiting of appearing and dissapearing images on the screen. I have a problem with score .Sometimes - sometimes on one click on image - I have a double score. I am so newby in scratch so can u help me? I must load project on sait for your help or something else?

this is link to it  - http://scratch.mit.edu/projects/Lorienara/3009034

P.S. Thanks a lot for your help.

Offline

 

#2 2012-12-29 13:00:11

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Hello lads)

ok, i'll download this and make changes to it, and i'll upload this and let you know.  smile


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#3 2012-12-29 13:48:25

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Hello lads)

Looks to me like the problem is that the score goes up multiple times for just one image, because the score checks to go up multiple times during a single image's duration.

Try changing the script in the Спрайт2 sprite from this:
http://i46.tinypic.com/v3et04.gif
To this:
http://i49.tinypic.com/nx1jmd.gif

Note the "repeat until" block that has been added in.  Now the score can only increase once per image.  The score can only increase again once a new one pops up.   smile

Last edited by Kileymeister (2012-12-29 13:51:39)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#4 2012-12-29 13:58:56

Lorienara
New Scratcher
Registered: 2012-12-29
Posts: 5

Re: Hello lads)

Thanks. The project is not very large - so i hope it is not be very diffical task)

Offline

 

#5 2012-12-29 14:03:22

Lorienara
New Scratcher
Registered: 2012-12-29
Posts: 5

Re: Hello lads)

Ow, wunderfull answer) of cource I'll try it) thanks.

Offline

 

#6 2012-12-31 08:42:02

Lorienara
New Scratcher
Registered: 2012-12-29
Posts: 5

Re: Hello lads)

Hi, thank a lot for help with previos question. But now I have got another. I have fixed problem with incorrect score with your help. Add some sounds and images but now after publishing on site - game works incorrect - all robbers images that work fine on my computer - on site does not appearing but all another functional works fine. What a kind of magic is it? Thanks for answers  smile   And I'm sorry about  my Englesh.

Offline

 

#7 2013-01-01 13:52:36

Kileymeister_test
Scratcher
Registered: 2010-01-31
Posts: 100+

Re: Hello lads)

I believe the problem is that sighn sprite is constantly setting the activeSproght variable to 0, which the robbers need to have as 1 before they can appear.  Getting rid of that seems to create no new bugs, and fixes the ones you described.

So change the sighn sprite's script like so:
http://i49.tinypic.com/a5en4.gif
Note that the else section in the middle of the script is now empty.  That's the only change I made.

Last edited by Kileymeister_test (2013-01-01 13:53:39)


Kileymeister's test account.  I upload engines and demos and stuff for public use.
Currently Working on: Grapple Arms!

Offline

 

#8 2013-01-02 07:34:09

Lorienara
New Scratcher
Registered: 2012-12-29
Posts: 5

Re: Hello lads)

You are genius.Thanks a lot for attention for my problems.  smile

Offline

 

#9 2013-01-02 14:36:35

Kileymeister_test
Scratcher
Registered: 2010-01-31
Posts: 100+

Re: Hello lads)

You are very welcome.   smile


Kileymeister's test account.  I upload engines and demos and stuff for public use.
Currently Working on: Grapple Arms!

Offline

 

Board footer