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
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:
To this:
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.
Last edited by Kileymeister (2012-12-29 13:51:39)
Offline
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 And I'm sorry about my Englesh.
Offline
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:
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)
Offline
You are very welcome.
Offline