Fourth tutorial!!
Today i did my fourth tutorial! wooo!... I did the 'keep score' tutorial. This tutorial can really help with my assignment as i am making a game where you have to keep score. anyways, in this tutorial, i learnt how to keep score everytime the costume touches the other costume it's meant to. I found this tutorial a bit challenging as it uses a couple of scripts. First of all i put the ' when green flag is clicked', as always, then i went to variables and clicked make a variable. I then entered score so that it could count the score. After a bunch of scripts come up such as 'set score to 0', 'change score by 1', ,show variable' etc. and so i selected set score to 0 then i added it under 'when green flag is clicked. Then i selected forever so that it doesnt stop and added turn so that it turns in a direction. I put move so that it could move how much steps i want. i put an 'if' after and put 'touching' what ever sprite and then i added the variable i made ' change score by 1' so that when what ever costume touches another costume, the score changes. if i wanted to put sounds in it, i would add play sound. then the last thing i added was move __ steps'Here is an example of what the script looks like.
No comments:
Post a Comment