it would make it alot easier to make games where you can double jump, do jumping attacks and other stuff. for example: if up arrow and up arrow pressed within 0.5 seconds. and somehow you can make it so it's longer so that it could be a secret code that you have to put in, like if 1 and 3 and 3 and 7 pressed within 5 seconds. you also would have to do them in that order, so if you did 3731 it would only count the 1 at the end.
Offline
You can already do that.
first have a timer, and check if the up arrow is pressed and that the timer isn't over .5 seconds.
Offline
Kinda bounceing off this topic, I have always wanted a block that repeats for a certain time.
Like: repeat for _ secs
Offline
archmage wrote:
You can already do that.
first have a timer, and check if the up arrow is pressed and that the timer isn't over .5 seconds.
You would rather make stuff advanced and hard than make it simple and easy
Offline
BWOG wrote:
archmage wrote:
You can already do that.
first have a timer, and check if the up arrow is pressed and that the timer isn't over .5 seconds.You would rather make stuff advanced and hard than make it simple and easy
Its easy enough. Scratch doesn't need more useless blocks.
Offline
8-)
Offline
agree with arch mage, just use a variable to cheak weither he's jumping or not, and if he is and up is pressed again the varaible changes again so it doesint stay in the air...
Offline
Yeah, you might not get it at first, but if u don't like that way, there are also other ways like creating a variable to tell how many jumps he's used and how many he has left
Offline
Oh. you want to double-jump?
http://scratch.mit.edu/projects/bhz/379989
Offline
bosox397 wrote:
Kinda bounceing off this topic, I have always wanted a block that repeats for a certain time.
Like: repeat for _ secs
The
[blocks]<repeat(
<end>
[/blocks]
can work wonders if you want a timed script. Just use [blocks]<wait( )secs>[/blocks] and a calculator. (Note: This is in Suggestions so I'll add a suggestion: make the wait [] secs block not say wait [] "secsc" in the forum code. It makes the blocks not work... AND the end is purple! What the heck?!
Last edited by big-bang (2009-01-13 18:55:47)
Offline