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

#1 2011-01-06 18:05:07

walrusninja
Scratcher
Registered: 2011-01-01
Posts: 31

How do I set a time limit for an action?

I'm trying to set a 0.5 second time limit for one to take action for a Guitar Hero like game. The problem is, I don't know how.


http://blocks.scratchr.org/API.php?user=walrusninja&action=onlineStatus - walrusninja - deviantART
http://i1108.photobucket.com/albums/h406/walrusninja/Banner.png

Offline

 

#2 2011-01-06 18:09:23

pika100chu
Scratcher
Registered: 2009-07-26
Posts: 500+

Re: How do I set a time limit for an action?

[blocks]<wait(  0.5  )secs>[/blocks]

Last edited by pika100chu (2011-01-06 18:10:44)

Offline

 

#3 2011-01-06 18:14:12

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

Re: How do I set a time limit for an action?

I think there are a number of ways to do it, one being:
http://i51.tinypic.com/9gfp0m.gif
Each multiple of 40 in the repeat block is roughly one second if your project isn't laggy.  The laggier it is, the lower the multiple would be (a really laggy project would be 15 per second or so).

Last edited by Kileymeister (2011-01-06 18:15:00)


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 2011-01-06 21:42:06

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: How do I set a time limit for an action?

if you want that person to play after someone else plays, use the "Broadcast _____" block. But if you want him to start playing even when an other guitarist is playing, use the "Wait For_____Secs" block.


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

Board footer