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

#1 2007-05-16 01:18:28

rszrama
Scratcher
Registered: 2007-05-15
Posts: 25

"repeat until" doesn't work without "wait x seconds"

My main game loop in Grumpy Wizard is a repeat until health = 0 on the stage's scripts page.  I noticed when I uploaded it it was running different through your site than on my machine.  Locally, it ran just fine without a wait after a certain score was reached.  Basically, I wanted two witches flying at once and I'm using 2 sprites to accomplish that with some variables to say which one should fly.

Anyways... after uploading, I noticed that after I reached the score threshold where the wait wasn't getting activated, it would just stop working.  Almost like the loop was locking itself up from running too fast or something.  It was odd.  I had to go back and just add a 1 second wait minimum in there through all iterations of the main loop.

Project: http://scratch.mit.edu/projects/rszrama/3338

Offline

 

#2 2007-05-16 09:00:56

johnm
Scratcher
Registered: 2007-03-08
Posts: 100+

Re: "repeat until" doesn't work without "wait x seconds"

Thanks for reporting this. I will investigate.

  -- John

Offline

 

#3 2009-05-14 15:08:28

kaitlyn13
Scratcher
Registered: 2009-01-08
Posts: 5

Re: "repeat until" doesn't work without "wait x seconds"

I don't know if you did or not but if you want it to repeat you need to put the http://scratch.mit.edu/forums/viewtopic.php?id=207#req_message around the part you want to have repeated. Sometimes the scratches have some glitches when you upload them to the website so you might want to reload it to your computer and fix the glitches or remake it. The same thing happened with my scratch but the timer wouldn't increase every one second but by like 20 each second.

Offline

 

#4 2009-05-14 15:10:53

kaitlyn13
Scratcher
Registered: 2009-01-08
Posts: 5

Re: "repeat until" doesn't work without "wait x seconds"

I don't know if you did or not but if you want it to repeat you need to put the [blocks]http://scratch.mit.edu/forums/viewtopic.php?pid=121811#req_message[/blocks] around the part you want to have repeated. Sometimes the scratches have some glitches when you upload them to the website so you might want to reload it to you computer and fix the glitches or remake it. The same thing happened with my scratch but the timer wouldn't increase every one second but by like 20 each second.

Offline

 

#5 2009-05-14 15:12:22

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: "repeat until" doesn't work without "wait x seconds"

kaitlyn13 wrote:

I don't know if you did or not but if you want it to repeat you need to put the http://scratch.mit.edu/forums/viewtopic.php?id=207#req_message around the part you want to have repeated. Sometimes the scratches have some glitches when you upload them to the website so you might want to reload it to your computer and fix the glitches or remake it. The same thing happened with my scratch but the timer wouldn't increase every one second but by like 20 each second.

PLEASE don't bring back threads more than 3 months old

Offline

 

#6 2009-05-14 21:14:50

kgordon
Scratcher
Registered: 2009-02-26
Posts: 100+

Re: "repeat until" doesn't work without "wait x seconds"

BWOG wrote:

kaitlyn13 wrote:

I don't know if you did or not but if you want it to repeat you need to put the http://scratch.mit.edu/forums/viewtopic.php?id=207#req_message around the part you want to have repeated. Sometimes the scratches have some glitches when you upload them to the website so you might want to reload it to your computer and fix the glitches or remake it. The same thing happened with my scratch but the timer wouldn't increase every one second but by like 20 each second.

PLEASE don't bring back threads more than 3 months old

Don't mean to be argumentative but why does it matter?

Offline

 

#7 2009-05-14 21:25:59

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: "repeat until" doesn't work without "wait x seconds"

kgordon wrote:

BWOG wrote:

kaitlyn13 wrote:

I don't know if you did or not but if you want it to repeat you need to put the http://scratch.mit.edu/forums/viewtopic.php?id=207#req_message around the part you want to have repeated. Sometimes the scratches have some glitches when you upload them to the website so you might want to reload it to your computer and fix the glitches or remake it. The same thing happened with my scratch but the timer wouldn't increase every one second but by like 20 each second.

PLEASE don't bring back threads more than 3 months old

Don't mean to be argumentative but why does it matter?

A lot of people find it annoying when a person bumps a really old topic to the first page. This topic, for example, is from May 2007.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

Board footer