Almost every day I go on Scratch, and it is completely free. Now I want to go into JavaScript and HTML coding. Block coding, by far, is the best and easiest type of coding. First, go to scratch.mit.edu, make an account, and start by clicking Create! Now, from the middle, drag a Move 10 Steps block. Now, click on Looks. Drag a Say Hello block next to the bottom of the Move block. It should connect. Now, click on the Say block and enter in "Hi There!".
Save Point
Click "Save now" now and click the script. Let's make something simple. How about a maze?- Let's also add a block called "When Green Flag Clicked" They will be at the Events area. Drag it to the right area and connect a Size block in Looks, it will be the "Set Size" block, change the 100% to 50%.
- Now we need to control the Cat. Use the IF and FOREVER blocks to help the player move around. Grab two more "When Green Flag Clicked" blocks. Next, add the FOREVER blocks in Control. Next, add IF blocks in them.
- Go to Sensing and drag the "key pressed?" block, and add both to the hole in the if. Have one A and the other D. Play, press A and D, it does nothing, right?
- Attach Move blocks to the IF blocks. Add "Point in direction" blocks before the motion and make the D one right and A left. Also on the "When Green Flag Clicked" grab a Go To block and set it to X:-170 Y:90.
- Now press the Green Flag and press those A and D buttons. Wait a second, why is the Cat like that? It is flipped. OK, uh, click on the I next to the Cat on the bottom-left corner and then click on the two arrows that look like this:
- Now click the Green Flag. Now it works.