Step 1. Shift + right click in the loop in the R in the Scratch logo.
Step 2. Select 'turn fill screen off'
Step 3. Click on the white space that appeared.
Step 4. Select open, then browser.
Step 5. On the leftmost pane in the green window, select Scratch - Objects.
Step 6. On the next pane, select ScriptableScratchMorph.
Step 7. Below the second pane, click on 'class'.
Step 8. In the next pane, select 'block specs'
Step 9. In the rightmost pane, select 'blockSpecs'.
Step 10. Read in the bottom pane until you find this:
'operators' ('%n + %n' #r #+ #- #-)Step 11. Keep reading until you see this:
('round %n' #r #rounded #-)Step 12. Paste this code with Alt + V directly after.
('%n !' #r #factorial: #-)TIP: The ' 's mean what the viewer will see, the %n creates a number input. The #r means the block is a round reporter, the #factorial: is the message, kinda like a broadcast, that we will program next. The #- means the block will be blank. Replace the - with any number, and that will be the default.
Step 13. Right click on the text, and hit 'save'.
Step 14. Now, click on 'instance' below the second pane.
Step 15. Select 'other ops' in the next pane.
Step 16. In the bottom pane, delete the text, and copy and paste this with Alt + V.
factorial: t1
^ t1 factorialStep 17. Right click on the text, and hit save. Close out of the browser.
Step 18. Shift + right click on the loop in the R, and select save image for end user.
Step 19. Hit 'Yes', and re-open Scratch.
Step 20. You have your new block! (Note: This block doesn't work online!)
I will post the rest when I get home
Note: Does anyone know how to get the checkbox off of the side of the block?
Offline
SeptimusHeap wrote:
Note: Does anyone know how to get the checkbox off of the side of the block?
Yay! Someone Asks! (I've Been Waiting FOREVER To Find This Out!
)
Offline
How do you?
Offline
The reversed block:
Step 1. Follow the steps from my other tutorial until you open blockspecs.
Step 2. Find this code.
('length of %s' #r #stringLength: 'world')Step 3. Now paste this code after with ALT + V.
('%s reversed' #r #reversed: 'world')TIP: The %s creates a string inserter, where you can insert text or a variable. The 'world' shows the default value for the blank. Choose one to your liking, like 'I like pie'!
Step 4. Follow the steps from my other tutorial to open 'other ops'.
Step 5. In the bottom panel, paste this code with ALT + V.
reversed: t1
^ t1 reversedStep 6. Follow my other tutorial to save changes.
Step 7. Enjoy!
Last edited by SeptimusHeap (2010-05-11 16:31:49)
Offline
I Think Your Home. XD
Offline