top of page
Search
daveauddric8622

scratch basics

in this post , we will go through most of the main blocks in scratch , let's go.


first i'll create a simple project

this block of code makes the sprite moves 10 sprites forward when the green flag is clicked. now let's move on to something harder (for this example , i'll make a mouse trail) .




this is a very simple mouse trail (it makes the sprite go to the mouse)


let's spice it up a bit with some more blocks of code.




check it out yourself in mouse trail 1


let's spice it up even more


this one is mouse trail 2


now let's make it even better.




play here : mouse trail


now that you know the very basic blocks of scratch , lets make a cat vs mouse game (final project for this post)


first let's make the mouse. :D




that'll be the movement of the mouse.



obstacle sensing , points given and movement etc. for the mouse


code for food :



i'll break this down slowly, if touching mouse1 means if touching the mouse(player) , delete this clone means delete the food that touched the mouse. go to random position teleports the food to random position.






rocks have simmiliar code (above)





cat (above)'s code is quite simple. the only new thing is broadcast and stop all.

play it here : cat vs mouse

7 views0 comments

Recent Posts

See All

intro <3

Comentários


bottom of page