![scratch in code scratch in code](https://d33wubrfki0l68.cloudfront.net/546f6f6936ce5994c35b69c71cfc7b9ff04a2930/5d930/assets/images/posts/2019-04-02-choose-your-own-adventure-scratch/scratch-nested-if.png)
This helps Scratchers improve their logical and creative thinking skills. The Default Value is 10 and can be replaced by any number. Platforming games work with more complex concepts, including gravity and physics. The move steps block is a stack block and a Motion block.Unlike the Change X by or the Change Y by (), this block moves its sprite forward the specified amount of 'steps' in the direction it is facing.A step is equal to a one-pixel length. For the D key you would do the same code as the W key except change the Change Ys code into Change Xs. Scratch: In 5 Schritten dein erstes Programm programmieren Scratch ist eine grafische Programmiersprache für Kinder und gehört zu den sogenannten erziehungsorientierten Programmiersprachen. Once set up, a coder age 8+ is ready to learn Scratch programming language. Scratch und ein paar andere Programmiersprachen sind einzigartig, da beim Erstellen des Codes nicht auf die Syntax geachtet werden muss, weil bei diesem Verfahren praktisch keine Syntaxfehler entstehen. So to avoid messing with rotation I usually create these for the movements: if then change y by (The amount you want) if then change y by (the amount you want but negative) end endAnd for the s key you would input the opposite: if then change y by (the amount you want but negative) if then change y by (The amount you want) end endFor the A key you would do the same code as the S key except turn the Change Ys into Change Xs.
![scratch in code scratch in code](https://i.ytimg.com/vi/ZzOKiIsl7qo/maxresdefault.jpg)
For now, we will just focus on the Code tab. AmFaiq wrote:How to make collision? set to If it's from a Birdseye's view (Like the very old Pokémon games) you usually add a script like this: if then move (The amount you moved forwards but with a - in front) steps endBut that can get tricky as you would always want the character to point in the direction as the object. At the top of the screen you can see three tabs: Code, Costumes, and Sounds.