ScratchData LogoScratchData
Back to scratch_programer569's profile

cat snake :P

SCscratch_programer569•Created September 21, 2022
cat snake :P
0
0
4 views
View on Scratch

Instructions

use arrows to increase trail length

Description

here's the json code that i couldnt paste in the original project page's comment section lol {"objName":"Stage", "children": [{"objName":"project" ,"variables":[ {"name": "yvel" , "value": "5.374279700271304" , "isPersistent":false} , {"name": "xvel" , "value": "-5.497341485162222" , "isPersistent":false} , {"name": "trail length" , "value": "76" , "isPersistent":false} , {"name": "msg" , "value": "" , "isPersistent":false} ] ,"customBlocks":[ ] ,"scripts":[ [ 73 , -447 , [ ["whenGreenFlag" ] , ["setSizeTo:" , "50" ] , ["gotoX:y:" , "0" , "0" ] , ["setVar:to:" , "xvel" , "0" ] , ["setVar:to:" , "yvel" , "0" ] , ["setVar:to:" , "trail length" , "1" ] , ["doForever" ,[ ["doIfElse" , ["<" , ["xpos" ] , ["mouseX" ] ] ,[ ["changeVar:by:" , "xvel" , "1" ] ] ,[ ["changeVar:by:" , "xvel" , "-1" ] ] ] , ["doIfElse" , ["<" , ["ypos" ] , ["mouseY" ] ] ,[ ["changeVar:by:" , "yvel" , "1" ] ] ,[ ["changeVar:by:" , "yvel" , "-1" ] ] ] , ["doIf" , ["keyPressed:" , "up arrow" ] ,[ ["changeVar:by:" , "trail length" , "1" ] ] ] , ["doIf" , ["&" , ["keyPressed:" , "down arrow" ] , ["<" , ["readVariable" , "trail length" ] , "0" ] ] ,[ ["changeVar:by:" , "trail length" , "-1" ] ] ] , ["setVar:to:" , "xvel" , ["*" , ["readVariable" , "xvel" ] , "0.9" ] ] , ["setVar:to:" , "yvel" , ["*" , ["readVariable" , "yvel" ] , "0.9" ] ] , ["changeXposBy:" , ["readVariable" , "xvel" ] ] , ["changeYposBy:" , ["readVariable" , "yvel" ] ] , ["pointTowards:" , "mouse-pointer" ] , ["createCloneOf:" , "myself" ] ] ] ]] , [ 73 , 87 , [ ["whenCloned" ] , ["doRepeat" , ["readVariable" , "trail length" ] ,[ ["changeGraphicEffect:by:" , "ghost" , ["/" , "100" , ["readVariable" , "trail length" ] ] ] , ["changeSizeBy:" , ["-" , "0" , ["/" , ["/" , "100" , ["readVariable" , "trail length" ] ] , "2" ] ] ] ] ] , ["deleteClone" ] ]] , [ 63 , 224 , [ ["setVar:to:" , "msg" , "use up and down arrows" ] , ["setVar:to:" , "msg" , "to increase trail length" ] ]] ] }],"info":{} }

Project Details

Project ID734745754
CreatedSeptember 21, 2022
Last ModifiedSeptember 21, 2022
SharedSeptember 21, 2022
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root