I'm going to use the Scratch 1.4 source code this time
___________________________________________________________________________________
1. Start the ScratchSourceCode1.4 image.
2. In the system browser, click "class" and goto "Scratch-Objects -> ScriptableScratchMorph -> block specs -> blockSpecs".
3. Under ('%n / %n' r / - -) type in the following code:
('%n ^ %n' r raise:toThePowerOf: - -)4. Alt-Click on the text and click accept.
5. If asked, type in your initials.
6. Squeak might complain that raise:toThePowerOf: doesn't exist. Just click raise:toThePowerOf:.
7. Click on "instance" and goto "Scratch-Objects -> ScriptableScratchMorph".
8. Hover over the third pane and click the dash that appears.
9. Click "new category".
10. Click "new..."
11. Type in "operator ops" and click accept.
12. Replace the template there with this code:
raise: t1 toThePowerOf: 12
"Raises t1 to the power of t2."
^ t1 raisedTo: t213. Alt-click on the text and click accept.
14. If asked, type in your initials.
15. Try out the new block!
16. If you like it, click on the gray area and click save.
Offline
Sorry ThePCKid, But Alot Of People Already Know That.
Offline
TheGameMaster1231 wrote:
Sorry ThePCKid, But Alot Of People Already Know That.
![]()
I'm sorry. I'm just trying to challenge myself to make blocks without looking at tutorials.
Offline
ThePCKid wrote:
TheGameMaster1231 wrote:
Sorry ThePCKid, But Alot Of People Already Know That.
![]()
I'm sorry. I'm just trying to challenge myself to make blocks without looking at tutorials.
Oh, Ok. Carry On. While Your Doing That, I Think I'll Just Do A Barrel Roll. *Falls Off Chair Doing A Barrel Roll*
EDIT: Ok, For Some Odd Reason, I Seriously Did A Barrel Roll And Fell Off My Chair. XD
Last edited by TheGameMaster1231 (2010-05-11 18:51:28)
Offline
Offline
TheGameMaster1231 wrote:
ThePCKid wrote:
TheGameMaster1231 wrote:
Sorry ThePCKid, But Alot Of People Already Know That.
![]()
I'm sorry. I'm just trying to challenge myself to make blocks without looking at tutorials.
Oh, Ok. Carry On. While Your Doing That, I Think I'll Just Do A Barrel Roll. *Falls Off Chair Doing A Barrel Roll*
EDIT: Ok, For Some Odd Reason, I Seriously Did A Barrel Roll And Fell Off My Chair. XD
LOL
rocket101 wrote:
Cool tutorial!
Thanks!
Offline
midnightleopard wrote:
I can't get 'new category'
![]()
Can you get the menu?
Offline