ScratchData LogoScratchData
Back to Bhachdi's profile

Zoom in code tutorial!

BHBhachdi•Created April 29, 2022
Zoom in code tutorial!
85
73
943 views
View on Scratch

Description

Hi! Welcome to a new tutorial! ✎ Instructions Arrow keys ✎ Explanation The first block show shows the sprite after the green flag is clicked. Then we switch costume to blank because if our drawing is too big it won't get big sizes! But blank will get a big size! The if else detects for mouse presses if it is do something if not then no! IN the if mouse down "change x by "0 - mouse x" - x position * 0.2" To explain this imagine an x of 0 and a mouse x of 240. Our mouse x is 240 so 0 - 240 is -240 so if we change x by -240 we'll have 0 - mouse x but we want to animate it so * 0.1 will reduce -240 to -24 and it would repeat 10 times to get 0 - mouse x which is good enough to make an animation! If you get that you'll understand all other code in if mouse down! The else We change x by x * -0.1! Imagine x is 100 so that * -0.1 will be minus 10! And it'll take 10 times of running to get 0 which'll make good animation! Now its easy to understand rest! If you think this should be featured you can propose it here - https://scratch.mit.edu/studios/28715018 Thanks for viewing! ❤️ and ⭐ if you like! Have fun! And Scratch on!

Project Details

Project ID682572176
CreatedApril 29, 2022
Last ModifiedFebruary 19, 2023
SharedApril 29, 2022
Visibilityvisible
CommentsAllowed