I have been a little bored of scratch recently, so, I made Oof-Script-y! my own programming language within scratch! It can move, draw, repeat, and even detect errors! Press space or click the cat to run your script again I also found some code that can detect if a variable is a number or not, so that is inside if you need it OMG wow, I Can not believe I did this it didn't even take that long and I did it mostly on the first try wow! 506 blocks too (probably a "little" over-complicated) I do not plan to expand this for fear of driving myself insane, but if you want to make any expansions you can just give credit and preferably remix this project, the code might not be super understandable but you can try Also, I'm going to try adding some tags and studios #programming #Script #script #engine #education #code #cool #idk #do #these #work #? Sorry Ahem
Docs: Hover mouse in the top left corner to show debug info Use > to separate commands and inputs TurnRight>Number Turns the fish right given Number degrees or 90 if none given TurnLeft>Number TurnRight but to the left SetDirection>Number Sets the direction of the fish to the given Number GoTo>Number1>Number2 Sets the fish's position to (Number1, Number2) MoveBy>Number1>Number2 Changes the fish's position by (Number1, Number2) Forward>Number Makes the fish go forward the given Number steps, if none given goes forward 10 steps Repeat>Number Repeats the script until EndRepeat given Number times EndRepeat Ends a repeat loop PenDown>Number1>Number2 Starts drawing with color Number1, and Size Number2 PenUp Stops drawing Erase Erases everything Wait>Number Delays the script Number seconds, or 1 second if none is given Print>Input Makes the fish say Input useful for debugging Note that all spaces are discarded so use as many as you want, separators (>) at the end of a script are also discarded Only use one separator (>) to separate commands, using multiple will result in an error Example script: GoTo>0>0>SetDirection>90>Repeat>4>TurnRight>Forward>100>EndRepeat Clear script: Erase>SetDirection>90>PenUp>GoTo>0>0> Errors: Expected Number at Line: X Found: Y This means a command was looking for a number as input but found something else, you can fix this by putting a number at the line Unrecognized Command at Line: X Found: Y This means you inputted an unknown command, you can fix this by replacing the command with a known one Feel free to ask for help in the comments Use with credit, preferably as a remix