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

#1 2009-01-02 04:45:50

Buddy_ca111
Scratcher
Registered: 2008-08-30
Posts: 100+

New Control Block Idea

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.


By reading this you agree to giving me your soul, money, passwords, projects, abiltys and your bases

Offline

 

#2 2009-01-02 10:29:37

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: New Control Block Idea

so basicly a instant speed? it'll confuse new scratchers.

Offline

 

#3 2009-01-02 11:08:48

techy
Scratcher
Registered: 2008-12-17
Posts: 100+

Re: New Control Block Idea

so you would want to do everything at once in that bracket... that would be nice in some case...


Guppy Inc. making projects famous!
http://web-geeks.com/techy.gifhttp://web-geeks.com/grid.gifhttp://web-geeks.com/challenge.gif

Offline

 

#4 2009-01-02 19:00:59

726961
Scratcher
Registered: 2008-11-26
Posts: 100+

Re: New Control Block Idea

together with who? it would only be in one script box.


http://scratch.mit.edu/projects/726961/604658 play it now! or else...

Offline

 

#5 2009-01-02 21:35:10

Buddy_ca111
Scratcher
Registered: 2008-08-30
Posts: 100+

Re: New Control Block Idea

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)


By reading this you agree to giving me your soul, money, passwords, projects, abiltys and your bases

Offline

 

#6 2009-01-02 22:18:08

726961
Scratcher
Registered: 2008-11-26
Posts: 100+

Re: New Control Block Idea

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.


http://scratch.mit.edu/projects/726961/604658 play it now! or else...

Offline

 

#7 2009-01-03 06:07:17

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: New Control Block Idea

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!


Jens Mönig

Offline

 

#8 2009-01-12 21:15:46

Buddy_ca111
Scratcher
Registered: 2008-08-30
Posts: 100+

Re: New Control Block Idea

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?


By reading this you agree to giving me your soul, money, passwords, projects, abiltys and your bases

Offline

 

#9 2009-01-12 21:41:07

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: New Control Block Idea

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

 

#10 2009-01-13 00:40:36

Buddy_ca111
Scratcher
Registered: 2008-08-30
Posts: 100+

Re: New Control Block Idea

oh


By reading this you agree to giving me your soul, money, passwords, projects, abiltys and your bases

Offline

 

#11 2009-01-14 14:16:34

PebblesRox
Scratcher
Registered: 2008-10-29
Posts: 11

Re: New Control Block Idea

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

 

Board footer