Discuss Scratch
- Discussion Forums
- » Project Save & Level Codes
- » Scratch emulator (GriffScratch) saved projects
- JackerAugust
- Scratcher
18 posts
Scratch emulator (GriffScratch) saved projects
Improved Platformer
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 360 , -10 , [ ]] , [ 29 , -248 , [ , , , , , , , , , , , , , [“doForever” ,[ [“changeVar:by:” , “speed x” , [“*” , “0.1” , [“-” , , ] ] ] , [“setVar:to:” , “speed x” , [“*” , , “0.98” ] ] , [“changeXposBy:” , ] , , [“setVar:to:” , “speed y” , [“*” , , “0.98” ] ] , [“changeYposBy:” , ] , [“doIf” , [“<” , , “-90” ] ,[ [“changeVar:by:” , “speed x” , [“*” , “2.5” , [“-” , , ] ] ] , [“setVar:to:” , “speed x” , [“*” , , “0.8” ] ] , [“changeYposBy:” , [“*” , , “-1” ] ] , , [“doIf” , ,[ ] ] ] ] , [“doIf” , [“&” , [“|” , , ] , [“not” , [“&” , , ] ] ] ,[ [“doIfElse” , ,[ ] ,[ ] ] ] ] ] ] ]] , [ 385 , -79 , [ ]] ] }],“info”:{} }
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 360 , -10 , [ ]] , [ 29 , -248 , [ , , , , , , , , , , , , , [“doForever” ,[ [“changeVar:by:” , “speed x” , [“*” , “0.1” , [“-” , , ] ] ] , [“setVar:to:” , “speed x” , [“*” , , “0.98” ] ] , [“changeXposBy:” , ] , , [“setVar:to:” , “speed y” , [“*” , , “0.98” ] ] , [“changeYposBy:” , ] , [“doIf” , [“<” , , “-90” ] ,[ [“changeVar:by:” , “speed x” , [“*” , “2.5” , [“-” , , ] ] ] , [“setVar:to:” , “speed x” , [“*” , , “0.8” ] ] , [“changeYposBy:” , [“*” , , “-1” ] ] , , [“doIf” , ,[ ] ] ] ] , [“doIf” , [“&” , [“|” , , ] , [“not” , [“&” , , ] ] ] ,[ [“doIfElse” , ,[ ] ,[ ] ] ] ] ] ] ]] , [ 385 , -79 , [ ]] ] }],“info”:{} }
- aNormalScratcher2019
- Scratcher
26 posts
Scratch emulator (GriffScratch) saved projects
forever
create clone of [ myself ]
when green flag clicked
- Zizo_GamesYT
- Scratcher
1 post
Scratch emulator (GriffScratch) saved projects
{"objName":"Stage", "children": [{"objName":"project" ,"variables":[ {"name": "Speed X" , "value": "-0.0062125526491321964" , "isPersistent":false} , {"name": "Speed Y" , "value": "0.0009912070428395089" , "isPersistent":false} ] ,"scripts":[ [ 80 , 62 , [ ["whenGreenFlag" ] , ["setVar:to:" , "Speed X" , "0" ] , ["setVar:to:" , "Speed Y" , "0" ] , ["doForever" ,[ ["changeXposBy:" , ["readVariable" , "Speed X" ] ] , ["changeYposBy:" , ["readVariable" , "Speed Y" ] ] , ["doIf" , ["keyPressed:" , "up arrow" ] ,[ ["changeVar:by:" , "Speed Y" , "1.5" ] ] ] , ["doIf" , ["keyPressed:" , "down arrow" ] ,[ ["changeVar:by:" , "Speed Y" , "-1.5" ] ] ] , ["doIf" , ["keyPressed:" , "left arrow" ] ,[ ["changeVar:by:" , "Speed X" , "-1.5" ] ] ] , ["doIf" , ["keyPressed:" , "right arrow" ] ,[ ["changeVar:by:" , "Speed X" , "1.5" ] ] ] , ["setVar:to:" , "Speed X" , ["*" , ["readVariable" , "Speed X" ] , "0.89" ] ] , ["setVar:to:" , "Speed Y" , ["*" , ["readVariable" , "Speed Y" ] , "0.89" ] ] ] ] ]] ] }],"info":{} }
___________________________________________________________________________________________
Simplest way I know for smooth movement
Here's the code in blocks:
when green flag clicked
set [Speed X v] to [0]
set [Speed Y v] to [0]
forever
change x by (Speed X)
change y by (Speed Y)
if <key [up arrow v] pressed?> then
change [Speed Y v] by (1.5)
end
if <key [down arrow v] pressed?> then
change [Speed Y v] by (-1.5)
end
if <key [left arrow v] pressed?> then
change [Speed X v] by (-1.5)
end
if <key [right arrow v] pressed?> then
change [Speed X v] by (1.5)
end
set [Speed X v] to ((Speed X) * (0.89))
set [Speed Y v] to ((Speed Y) * (0.89))
end
Last edited by Zizo_GamesYT (March 19, 2024 02:16:42)
This is my signature here. Click here to find out how to make a signature.
when I receive [Scratch v]
if (distance to [Is The v]) then
broadcast [Best v]
set pen color to (Programming)
set [Language v] to [Ever!]
end
- aNormalScratcher2019
- Scratcher
26 posts
Scratch emulator (GriffScratch) saved projects
“{objName“:”Stage“, ”children": [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 80 , 62 , [ , , , [“doForever” ,[ [“changeXposBy:” , ] , [“changeYposBy:” , ] , [“doIf” , ,[ ] ] , [“doIf” , ,[ ] ] , [“doIf” , ,[ ] ] , [“doIf” , ,[ ] ] , [“setVar:to:” , “Speed X” , [“*” , , “0.89” ] ] , [“setVar:to:” , “Speed Y” , [“*” , , “0.89” ] ] ] ] ]] ] }],“info”:{} }
- Harun123T
- Scratcher
3 posts
Scratch emulator (GriffScratch) saved projects
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 113 , 61 , [ , [“doForever” ,[ [“changeYposBy:” , ] , [“changeXposBy:” , ] , [“setVar:to:” , “dayna muda” , [“*” , , “0.9” ] ] , [“setVar:to:” , “dayne muda” , [“*” , , “0.9” ] ] , [“doIf” , ,[ ] ] , [“doIf” , ,[ ] ] , [“doIf” , ,[ ] ] , [“doIf” , ,[ ] ] ] ] ]] ] }],“info”:{} }
- makeylakey1234
- Scratcher
4 posts
Scratch emulator (GriffScratch) saved projects
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 95 , 13 , [ , , , [“doForever” ,[ [“doIf” , ,[ , [“changeXposBy:” , ] , ] ] , [“doIf” , ,[ , [“changeXposBy:” , ] , ] ] , [“doIf” , [“|” , , ] ,[ [“doRepeat” , “20” ,[ , [“changeYposBy:” , ] ] ] , [“doRepeat” , “20” ,[ , [“changeYposBy:” , ] ] ] ] ] ] ] ]] , [ 22 , 20 , [ , [“doForever” ,[ [“say:” , ] ] ] ]] ] }],“info”:{} }
- makeylakey1234
- Scratcher
4 posts
Scratch emulator (GriffScratch) saved projects
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 95 , 13 , [ , , , [“doForever” ,[ [“doIf” , ,[ , [“changeXposBy:” , ] , ] ] , [“doIf” , ,[ , [“changeXposBy:” , ] , ] ] , [“doIf” , [“|” , , ] ,[ [“doRepeat” , “20” ,[ , [“changeYposBy:” , ] ] ] , [“doRepeat” , “20” ,[ , [“changeYposBy:” , ] ] ] ] ] ] ] ]] , [ 22 , 20 , [ , [“doForever” ,[ [“say:” , ] ] ] ]] ] }],“info”:{} }
- kip2612_test
- Scratcher
1 post
Scratch emulator (GriffScratch) saved projects
im sorry, had to remove the code because it was too long.
Last edited by kip2612_test (March 23, 2024 14:10:08)
- nosemonkey16lol
- Scratcher
2 posts
Scratch emulator (GriffScratch) saved projects
Below is the JSON text created from your project. To save this you must click on it then press Ctrl+A to select all, then Ctrl+C to copy it. Paste this into a text editor or one of the scratch forums to keep it safe!
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,"
Just asks stuff lol
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,"
Just asks stuff lol
- melondae18
- Scratcher
13 posts
Scratch emulator (GriffScratch) saved projects
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 50 , 104 , [ , , , [“doForever” ,[ [“setSizeTo:” , [“+” , [“*” , [“computeFunction: of:” , “sin” , [“*” , , “100” ] ] , “10” ] , “200” ] ] , [“doIf” , ,[ , , [“say:” , [“concatenate:with:” , “Points: ” , ] ] , [“doWaitUntil” , [“not” , ] ] ] ] ] ] ]] ] }],“info”:{} }
It's a clicker (also you need to get rid of the space in “computeFunction: of” otherwise it'll not work )
Sample before playing:
It's a clicker (also you need to get rid of the space in “computeFunction: of” otherwise it'll not work )
Sample before playing:
when green flag clicked
set [points v] to [0]
go to x: (0) y: (0)
forever
set size to ((([sin v] of ((timer) * (100))) * (10)) + (200)) %
if <key [space v] pressed?> then
set size to (150) %
change [points v] by (1)
say (join [Points: ] (points)
wait until <not<key [space v] pressed?>>
end
end
- cool_blue_boy_0
- Scratcher
3 posts
Scratch emulator (GriffScratch) saved projects
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 69 , 37 , [ , , , , [“doForever” ,[ [“warpSpeed” ,[ , , , , , , , [“doRepeat” , “360” ,[ , ] ] , , [“doIf” , [“not” , , “0” ] ] ,[ , , [“turnRight:” , [“*” , , ] ] , , ] ] ] ] , , , [“doIf” , , “60” ] ,[ ] ] , ] ] ]] ] }],“info”:{} }
- NaaaS321
- Scratcher
1 post
Scratch emulator (GriffScratch) saved projects
A Clicker
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 68 , 53 , [ , , [“doForever” ,[ [“doWaitUntil” , ] , , , , [“say:” , ] , , [“doWaitUntil” , [“not” , ] ] ] ] ]] ] }],“info”:{} }
{“objName”:“Stage”, “children”: [{“objName”:“project” ,“variables”: ,“scripts”:[ [ 68 , 53 , [ , , [“doForever” ,[ [“doWaitUntil” , ] , , , , [“say:” , ] , , [“doWaitUntil” , [“not” , ] ] ] ] ]] ] }],“info”:{} }
- ScratchLG0
- Scratcher
15 posts
Scratch emulator (GriffScratch) saved projects
when green flag clicked
forever
change x by (foo)
end
- ScratchLG0
- Scratcher
15 posts
Scratch emulator (GriffScratch) saved projects
when green flag clicked
forever
change y by (foo)
change [foo v] by (-1)
end