Today our class learnt how to make characters fly past buildings on the coding website Scratch. To make characters fly you must do: when green flag clicked - forever trigger - set x (250) - repeat trigger (50) - change X by (-10). I will explain what these triggers do. So what the when green flag clicked trigger does is when you click the green flag, the code connected to it will activate. What the forever trigger does is when there is code inside of it, it will repeat the code forever. What the set X trigger does is when the selected sprite (sprite means character in coding) it will move X by 250. What the repeat trigger does is when there is code in the repeat trigger it will repeat as many times you want. What the change X trigger does is you can change the position of the selected sprite as much as you want. Here is an example of the code:
Hello Rieza I love your blog post it must of taken a lot of time to make that code maybe you could show what you created?
ReplyDeletei got my first comment thank you :)
Delete