ScratchData LogoScratchData
Back to Secarvo's profile

How to make "Create Var []" Block!

SESecarvo•Created October 4, 2015
How to make "Create Var []" Block!
25
28
1509 views
View on Scratch

Instructions

Make sure in the bottom, you use your own computer address and web address. How to make: Create a scratch project, save it to your desktop but replace .scratch with .zip Next, go inside and paste the codes in "Notes and Credits"

Description

Code (Make sure you replace "userAgent" with your own computer specs! Otherwise, it will crash/doesn't work): { "objName": "Stage", "sounds": [{ "soundName": "pop", "soundID": 1, "md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav", "sampleCount": 258, "rate": 11025, "format": "" }], "costumes": [{ "costumeName": "backdrop1", "baseLayerID": 3, "baseLayerMD5": "739b5e2a2435f6e1ec2993791b423146.png", "bitmapResolution": 1, "rotationCenterX": 240, "rotationCenterY": 180 }], "currentCostumeIndex": 0, "penLayerMD5": "5c81a336fab8be57adc039a8a2b33ca9.png", "penLayerID": 0, "tempoBPM": 60, "videoAlpha": 0.5, "children": [{ "objName": "Sprite1", "scripts": [[10, 10, [["procDef", "create variable %s", ["varName"], [""], false], ["setVar:to:", ["getParam", "varName", "r"], "0"]]]], "sounds": [{ "soundName": "meow", "soundID": 0, "md5": "83c36d806dc92327b9e7049a565c6bff.wav", "sampleCount": 18688, "rate": 22050, "format": "" }], "costumes": [{ "costumeName": "costume1", "baseLayerID": 1, "baseLayerMD5": "09dc888b0b7df19f70d81588ae73420e.svg", "bitmapResolution": 1, "rotationCenterX": 47, "rotationCenterY": 55 }, { "costumeName": "costume2", "baseLayerID": 2, "baseLayerMD5": "3696356a03a8d938318876a593572843.svg", "bitmapResolution": 1, "rotationCenterX": 47, "rotationCenterY": 55 }], "currentCostumeIndex": 0, "scratchX": 0, "scratchY": 0, "scale": 1, "direction": 90, "rotationStyle": "normal", "isDraggable": false, "indexInLibrary": 1, "visible": true, "spriteInfo": { } }], "info": { "videoOn": false, "flashVersion": "MAC 19,0,0,185", "swfVersion": "v440", "scriptCount": 1, "projectID": "80225124", "spriteCount": 1, "userAgent": "(Example) Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/45.0.2454.101 Safari\/537.36", "hasCloudData": false } }

Project Details

Project ID80223502
CreatedOctober 4, 2015
Last ModifiedJune 18, 2022
SharedOctober 4, 2015
Visibilityvisible
CommentsAllowed