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

#1 2010-11-02 18:49:10

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Simultaneous Scripts

I think that it's annoying that you have to make an entirely different script to do 2 things at once. For example:
[blocks]
<when green flag clicked><say[ Hello ]for( 2 )secs>
<when green flag clicked><glide( 1 )secs to x sad  0 )y sad  0
So you could run different scripts side-by-side, so the character would glide to 0,0 while saying 'Hello' as it's moving.


*Insert some witty, funny or sarcastic comment here*

Offline

 

#2 2010-11-03 03:59:15

werdna123
Scratcher
Registered: 2010-06-12
Posts: 1000+

Re: Simultaneous Scripts

For that you could do [When flag clicked] [say {hello}] [glide 1 secs to x:0 y:0] [wait 1 secs] [say {nothing}]. But for other scripts that would be useful.  smile

Offline

 

#3 2010-11-03 19:42:50

kinker
Scratcher
Registered: 2010-08-01
Posts: 100+

Re: Simultaneous Scripts

Shadowed1 wrote:

I think that it's annoying that you have to make an entirely different script to do 2 things at once. For example:
[blocks]
<when green flag clicked><say[ Hello ]for( 2 )secs>
<when green flag clicked><glide( 1 )secs to x sad  0 )y sad  0
So you could run different scripts side-by-side, so the character would glide to 0,0 while saying 'Hello' as it's moving.

SUPPORT!


Put in the weirdness: http://i54.tinypic.com/zl6fph.pnghttp://img821.imageshack.us/i/gobanim2.gif/kinker style! [url]http://internetometer.com/image/16724.png[/url]♬♫ 92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature. ♫♪

Offline

 

#4 2010-11-03 21:01:42

whateverguy3600
Scratcher
Registered: 2010-10-01
Posts: 18

Re: Simultaneous Scripts

Technically, you already can.

Offline

 

#5 2010-11-05 12:28:14

Bentheneighbor
Scratcher
Registered: 2008-12-24
Posts: 100+

Re: Simultaneous Scripts

This would be useful, but it would probably lead to a lot of confusingness.


"Something most Flash developers couldn't do."/"If 50 people did this, I would be amazed."/"Truly the best game on Scratch."/"So realistic, dark, and even beautiful, this game is better than 90% of escape games!" Real comments! CLICK HERE to see for yourself!

Offline

 

#6 2010-11-06 02:40:26

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Re: Simultaneous Scripts

Bentheneighbor wrote:

This would be useful, but it would probably lead to a lot of confusingness.

My method for doing it would be if you don't want multiple scripts you wouldn't want to.
If you wanted, you would right-click on a block and select it, and then select a place for scripting would come alongside, joined by a yellow line.
For example, you could have a script going: [blocks]
<when green flag clicked><glide( 1 )secs to x sad  0 )y sad  0
But at the same time you want it to change colours as well so you would right click on the main script, then you would choose when in the script you want it to do it (obviously). [blocks]
<repeat( 100<change[ colour ]effect by( 5
Then if you want it to say something as well, you would right-click the one you had just created (or the main script, it wouldn't matter), choose the option, and do the scripting: [blocks]
<say[ Hello! ]for( 2 )secs>
This would help reduce the amount of scripts you have and also reduce the amount of 'broadcasts' that you could do.


*Insert some witty, funny or sarcastic comment here*

Offline

 

#7 2010-11-06 18:22:56

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Re: Simultaneous Scripts

It'd probably have less lag too. It would count them as different scripts, so that there isn't lag, but it would say that it has only one script, so there would be no lag from really long scripts that have it. It could theoratically be possible to put all of the scripts together in 1 superscript.


*Insert some witty, funny or sarcastic comment here*

Offline

 

#8 2010-11-06 18:28:01

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Simultaneous Scripts

Shadowed1 wrote:

It'd probably have less lag too. It would count them as different scripts, so that there isn't lag, but it would say that it has only one script, so there would be no lag from really long scripts that have it. It could theoratically be possible to put all of the scripts together in 1 superscript.

There's still the same amount of stuff going on, so no, this would not reduce lag.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#9 2010-11-06 18:46:11

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Simultaneous Scripts

Harakou wrote:

Shadowed1 wrote:

It'd probably have less lag too. It would count them as different scripts, so that there isn't lag, but it would say that it has only one script, so there would be no lag from really long scripts that have it. It could theoratically be possible to put all of the scripts together in 1 superscript.

There's still the same amount of stuff going on, so no, this would not reduce lag.

If the problem is script amount/length lag, then no, this wouldn't reduce it. But, if it was timing lag, then it would definitely reduce it.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#10 2010-11-06 23:16:01

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Simultaneous Scripts

I think the current method (using 2 scripts) is fine. At least it won't confuse younger Scratchers.

Last edited by mathematics (2010-11-06 23:16:30)

Offline

 

#11 2010-11-06 23:34:24

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Simultaneous Scripts

the current method is definitely fine, if you think broadcasts are frustrating, try using flash or something.

@mathematics-how do you get the updating signature? it's awesome.

Offline

 

#12 2010-11-07 00:19:34

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Simultaneous Scripts

kayybee wrote:

@mathematics-how do you get the updating signature? it's awesome.

http://scratch.mit.edu/forums/viewtopic.php?id=47970

I think this is the first time for me to get the "60 seconds rule" in the normal Scratch Forums...

Offline

 

Board footer