Here is my idea. It may not have been the first time coming but bear with me
I am going to use text because I am not good at paint
Here it is:
/-------------------\
| Do together |
| |-------------/
| |
| |____
| |
\_______/
and
/------------------------------\
| Do together until <> |
| |------------------------/
| |
| |____
| |
\_______/
There are my idea(s). I know that you can already do thst with mulitiple scripts but it would make things simpler.
Offline
so basicly a instant speed? it'll confuse new scratchers.
Offline
so you would want to do everything at once in that bracket... that would be nice in some case...
Offline
726961 wrote:
together with who? it would only be in one script box.
IT would do the things inside of it at the sametime. like it would walk 10 steps while saying Hi w/out there being two seperate scripts
@Yambansee - How would it be confusing
Last edited by Buddy_ca111 (2009-01-02 21:36:10)
Offline
Ohh. I think that makes a great idea. I usually have to make 2 different series of scripts for something that could be done in 1. good thinking.
Offline
Hi Buddy_ca111,
that's a great idea, and - you know what? - it's already possible in standard Scratch of today! Here's the trick:
All the blocks within a loop (forever, repeat, repeat until) are executed simultaneously at each cycle. So, if you script something like this:
[blocks]
<repeat( 1
<move( 10 )steps>
<say[ Hi
<end>
[/blocks]
your sprite will, in fact, move and talk at the same time. Cool, isn't it?
The only exception is "timed" blocks, like "wait", "glide", "play note". If there is any of these blocks within a loop, all the loop's blocks will be executed in the order of their coding.
Go ahead, try it!
Offline
OH THanks Jens! I didn`t see that you had posted!
But there is one thing that I don`t get.... How are the glide and play note blocks timed?
Offline
Buddy_ca111 wrote:
OH THanks Jens! I didn`t see that you had posted!
But there is one thing that I don`t get.... How are the glide and play note blocks timed?
Notice how some blocks will have "For X Secs." That means that having a block like that with an entered value of more than 0, with another block, will not do it simultaneously. For example:
Forever
-Move 10 steps
-Say [Hello]
________
While this will move 10 steps, and say hello at the same time, having a "timed" block will create a delay according to the inputted amount.
For example:
Forever
-Move 10 steps
-Glide 1 secs to X: 0, Y:0
_________
This will create a 1 second delay between each Move 10 steps.
Offline
oh
Offline
Jens wrote:
Hi Buddy_ca111,
All the blocks within a loop (forever, repeat, repeat until) are executed simultaneously at each cycle.
So this means that you can put several if blocks inside a forever and it will always be checking them all the time, not just in order? That's nice.
Offline