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

#1 2012-06-24 09:45:52

yoshi-fan
Scratcher
Registered: 2008-01-01
Posts: 100+

Scripts Sometimes Won't Work

Hi. I am making a game that involves little dots that increase your score when you get them. They are supposed to show up ever level, and I know I scripted it right, because sometimes it works and other times won't. The problem is, the script refuses to run. Can someone help me? Thanks.


http://i1057.photobucket.com/albums/t381/Goopggg/AllAboutScratchLogo.png

Offline

 

#2 2012-06-24 13:21:04

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scripts Sometimes Won't Work

Could you perhaps post a screenshot/the project so we can understand how the script works? It would help us solve your issue.


Hai.

Offline

 

#3 2012-06-24 14:19:30

benjamin2
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Scripts Sometimes Won't Work

Try inserting a sound effect in the script. If it plays its likely a script error.


http://i.imgur.com/gp6tZ.gif

Offline

 

#4 2012-06-28 18:43:23

yoshi-fan
Scratcher
Registered: 2008-01-01
Posts: 100+

Re: Scripts Sometimes Won't Work

fg123 wrote:

Could you perhaps post a screenshot/the project so we can understand how the script works? It would help us solve your issue.

Nevermind, I got it, but thanks for your advice.  smile


http://i1057.photobucket.com/albums/t381/Goopggg/AllAboutScratchLogo.png

Offline

 

#5 2012-06-28 18:45:48

yoshi-fan
Scratcher
Registered: 2008-01-01
Posts: 100+

Re: Scripts Sometimes Won't Work

benjamin2 wrote:

Try inserting a sound effect in the script. If it plays its likely a script error.

Thanks, I used the sound, and (that bug where you have to press the green flag twice) the sound played right when I clicked the flag sometimes. Then I realized that it was playing the script too early. So yeah, I figured it out now, but thanks!  smile


http://i1057.photobucket.com/albums/t381/Goopggg/AllAboutScratchLogo.png

Offline

 

Board footer