How to Make Basic Controls on Scratch
by funnyguylol in Circuits > Electronics
187 Views, 1 Favorites, 0 Comments
How to Make Basic Controls on Scratch
Hey everybody! This tutorial will teach you how to make basic controls and buttons for them! Even if you haven't used scratch a lot, this will still be for you!
Supplies
Just a normal computer
Go to Scratch
First go onto the Scratch website, and click create.
Add Sprite
Locate the add sprite logo and click on paint.
Make a Button Design
It can just be a square with an arrow if you want!
Move It and Size It
It's best if you put it here.
Duplicate Your Sprite
Right click on your button sprite, and click on duplicate.
Repeat Step 5 Three More Times!
Then you'll have the 4 buttons on screen.
Scratch Cat Code
Just copy my code here!
Up Arrow Code
Now copy this. Make sure the up arrow sprite is selected.
Down Arrow Code
After that, then copy this. Make sure the down arrow sprite is selected.
Left Arrow Code
After that, then copy this. Make sure the left arrow sprite is selected.
Right Arrow Code
Lastly, copy this. Make sure the right arrow sprite is selected.
Enjoy Your New Controls!
Now, you can press the arrow keys, use wasd, or click the arrow buttons to move your character! Hope you learned something new!