likegames wrote:
forget block maker, edit it with the source code!
I've tried, but can't get the code up and working. I download it and all, but where is it located for Mac's!!!???
Offline
personaly I agree with you (Cyclone103), that arrays are very usefull, but maybe that isn't the idea of Scratch to use such complex variables. But I'm looking forward to could use procedures. Without them it's hard to avoid a mess in the code.
Last edited by fabi85 (2008-05-17 06:25:13)
Offline
A block maker would be a good idea, but in a way it would have to be limited. There could be several types of build-a-block, but they should function as a sprite in a way. Basically, you would name and define your block (color, category, etc.) and set it a purpose (looks>scream>set text bubble to costume jagged>change sprite x by 10 wait.5 secs change sprite x by -10) and basically build like sprites, what each block can do.
Offline
It's been over a year since this request for comments was posted: are the Scratch team any closer to finalising some sort of procedural abstraction? Is there a timeline for implementing it?
Offline
fabi85 wrote:
personaly I agree with you (Cyclone103), that arrays are very usefull, but maybe that isn't the idea of Scratch to use such complex variables. But I'm looking forward to could use procedures. Without them it's hard to avoid a mess in the code.
Maybe in that case the Scratch team could use the lists created by Jens, since we already know it can be done. They could be used to build an array, since the mod block could set the width and the height could be as large as you like.
Offline
I posted this elsewhere but I think this is the place to do it.
My idea is that you could make a function just like youd make a sprite like this below:
A function wouldn't have a number of inputs (like variables) and one variable called output, that you have to set at the end of the script, functions would have no costumes or sounds just sripts like this one here that has just 1 input, this function is for squaring a number (ie a number times by itself)
When you make a Function you also get allong with it a new block in the section like this:
and the block has the same nuber of inputs as the Function, from the code this is what would happen if you used the square block:
And here's anothe possible one, this one has 2 inputs and works out the size of the difference between 2 numbers (ie there's no minuses involved):
With this Function of course you also get this block:
What you could also do is make a function that uses other functions that you've already made like this one for calculating pytagorases theorum for calculating the length hypotinuse of a right angled triangle from the length of the other 2 sides.
So the inputs here are the lengths of the two other sides of the triangle:
and making this function creates this block:
I have an example of how I currently attempt to tackle functions "my stuff"
Last edited by TOCM (2008-07-19 14:39:14)
Offline
Mick wrote:
ye me too.
same here.
Offline
Cyclone103 wrote:
I think that the current block type needed most is an array. Arrays allow retention of more data than a variable. If that block were to be added, it would probably go under variables, and a good color would be yellow. If an array block was added, everyone could expand their work much easier, since only one "variable style block" would be used for storing massive amounts of data.
arrays are in scratch 1.3 i can secretly go in 1.3 candidate and there is a block maker type %a %b %c %d %e %f in a variable this breaks 1.2.1 until the variable is deleted
Last edited by likegames (2008-08-31 14:17:12)
Offline
Bluestribute wrote:
likegames wrote:
forget block maker, edit it with the source code!
I've tried, but can't get the code up and working. I download it and all, but where is it located for Mac's!!!???
http://scratch.mit.edu/pages/source drag it on scratch.app then click OK if a box comes up
Offline
One block that I would like would be [blocks] <[ <=> ]> [/blocks], that existed in NetScratch. Now, text input was discovered, and I would like to do passwords, like this:
[blocks] <if> <[ (Item (1) of List <=> Password) ]>
<broadcast[ Correct Password
<end>
[/blocks]
Last edited by CPfan123 (2008-09-13 02:57:49)
Offline
http://www.freewebs.com/scratchclubsite … %20Tab.gif http://www.freewebs.com/scratchclubsite … 20Tab2.gif. To make a block you would have to click this: http://www.freewebs.com/scratchclubsite … 7361717941. The block could hold several blocks inside like this:http://www.freewebs.com/scratchclubsite … 0Block.gif http://www.freewebs.com/scratchclubsite … 0Block.gif
Offline
sonic2000 wrote:
http://www.freewebs.com/scratchclubsite … %20Tab.gif http://www.freewebs.com/scratchclubsite … 20Tab2.gif. To make a block you would have to click this: http://www.freewebs.com/scratchclubsite … 7361717941. The block could hold several blocks inside like this:http://www.freewebs.com/scratchclubsite … 0Block.gif http://www.freewebs.com/scratchclubsite … 0Block.gif
You took that from timefreeze didn't you.
Offline
I like the idea of having a feature in the right-click drop-down menu for a GROUP of blocks that says something like <convert...> and then you click on it, and you type in the wording for the block, so then all the blocks you selected are consolidated into one, and in THAT one's menu, it will have an option like <add...> where you could add a new block to the commands of that new block. Then, all series of blocks identical to what was put into that block (in that project) would convert to that block.
Offline
see: http://scratch.mit.edu/forums/viewtopic.php?pid=74488
Offline
Bluestribute wrote:
likegames wrote:
forget block maker, edit it with the source code!
I've tried, but can't get the code up and working. I download it and all, but where is it located for Mac's!!!???
on the mac, unzip it and DOUBLE-CLICK ON THE IMAGE FILE WITH A SQUEAKING MOUSE.
Offline
i think there should be an <if recieved(dropdown arrow)> block, that would be very useful for several of my current projects (sry if this is in rwrong forum, there were so many different sub forums)
Offline
i disagree to you lot.
i think we should simply have smaller blocks, which can be inserted into each other.
this would be alot easier for the scratch team to engineer, because i think a make-your-own-block would just be too hard to make!
Offline