How do the editing elements work? when you right click a block, it shows options, and one of the options is to edit the elements.... how do you do this??? please reply
Offline
Hi, mariobrosrule,
wow, you're interested in Elements! I'm very flattered. Those blocks in BYOB's Elements editor are actually the underlying Smalltalk code BYOB/Scratch is written in represented as Scratch-like blocks. I made this so you can seemlessly inspect how Scratch/BYOB works on the inside, and to prove that a blocks language like Scratch can be very powerful - because every once in a while someone will show up and claim that so called real programming languages have to be all written text. On the contrary I believe that programming languages should be expressive and might as well be symbolized by anything.
If you want to find out more about Elements you can read up my outline here: http://www.chirp.scratchr.org/blog/?p=24
Oh, before I forget: You can actually program in Elements, and change the way BYOB works. But I've put in some safeguards so that you should not be able to accidentally destroy or permanently mess up your BYOB installation.
Enjoy!
Last edited by Jens (2010-06-28 17:33:56)
Offline
Jens wrote:
Hi, mariobrosrule,
wow, you're interested in Elements! I'm very flattered. Those blocks in BYOB's Elements editor are actually the underlying Smalltalk code BYOB/Scratch is written in represented as Scratch-like blocks. I made this so you can seemlessly inspect how Scratch/BYOB works on the inside, and to prove that a blocks language like Scratch can be very powerful - because every once in a while someone will show up and claim that so called real programming languages have to be all written text. On the contrary I believe that programming languages should be expressive and might as well be symbolized by anything.
If you want to find out more about Elements you can read up my outline here: http://www.chirp.scratchr.org/blog/?p=24
Oh, before I forget: You can actually program in Elements, and change the way BYOB works. But I've put in some safeguards so that you should not be able to accidentally destroy or permanently mess up your BYOB installation.
Enjoy!
Ah. I love Elements. It makes everything easier. I've made so many blocks in it!
@mariobrosrule- if you know a little bit of smalltalk, you can go into Elements, click on the class tab, then click back on the instance tab and you should have a blank slate to start out on. To add block input variables, right click on the starting block and click rename. Then type your block name (no spaces) and use colons (:) as the place where the variable would go. For example, for a ( (10)^(2) ) block, you would type something like this:raisedTo: and the starting block would now say this [arg1] raised to [arg2]. These are your new input variables, or arguments. Now just experiment with blocks in the four categories on the right. (I would suggest mostly using the blocks from the 'basics' category.) There you go. The short tutorial on Elements.
Offline
If you don't like it, you can use hacked BYOB.
Offline
Can you go variables -> new block
Then code in 'Elements'?
Offline
johnnydean1 wrote:
Can you go variables -> new block
Then code in 'Elements'?
No, you have to right click on any block, go into Elements, click the class tab, then click back on the instance tab. Now you can make your own block method.
Offline