Do in Parallel Block?

Request a new command, feature, or improvement

Moderator: MSandro

Post Reply
User avatar
Calloway
Posts: 100
Joined: Apr 30th, '18, 00:28
Location: Eastern United States

Do in Parallel Block?

Post by Calloway » Jun 24th, '18, 22:34

So with the new release of Snap! came a new c-block in it called do in parallel
Anyway this could be implemented in GP?

SimpleSi
Posts: 330
Joined: Jul 2nd, '17, 13:47

Re: Do in Parallel Block?

Post by SimpleSi » Jun 26th, '18, 11:23

came a new c-block in it called do in parallel
???

I can't see one

What does it do?

SvenJ
Posts: 25
Joined: Jul 6th, '17, 08:03

Re: Do in Parallel Block?

Post by SvenJ » Jun 26th, '18, 13:43

Technically, it's not a new block. Jens merely added the functionality of having blocks look like https://u.cubeupload.com/bharvey/4223.png (Source: https://scratch.mit.edu/discuss/topic/4 ... st-3151745, scroll down a bit). I think he means the black arrows, specifically.

As for the actual block itself, it executes multiple scripts concurrently. However, it's always been possible to make a block that does that. All you need is the "launch"-Block and a bit of fiddling around with custom blocks in Snap.

GP does not currently support C-shaped custom blocks, as far as I know. Because of this, you currently can't implement this feature in GP. As for future developments, maybe John could give some insight :)

MSandro
Posts: 162
Joined: Jul 26th, '17, 21:12

Re: Do in Parallel Block?

Post by MSandro » Jun 26th, '18, 14:18

https://gpblocks.org/forum/viewtopic.php?f=23&t=446
yes gp doesn't support custom c-block atm, but you can create them by yourself with some manual work. Under Advanced > Tips > How to create C-Blocks (build a launchFor block) you can find my tutorial. It is posible to build a launch c-block, so I think it should be posible to create a block to run scripts parallel.

Post Reply