Tuesday, November 24, 2009
My assignment
Today i worked on my assignment which i have chosen to make a costume catch the objects falling down from the sky. I have made my costume move around as you move the arrow keys. I also got the objects to disapear as soon as they touch the costume. Today with the help of mr lennon, i fixed my problem which was the scoring. I made my scores and everything but it was not scoring for some of the objects. So mr lennon went through my scripts and help find what the problem was. I had one script overlaping with another. So i removed a whole chunk of piece and after it worked! yaay... and thats where im upto.
Friday, November 20, 2009
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.
Here is an example of what the script looks like.
Third tutorial!!
Today i did my third tutorial and it called 'follow the mouse'. BAsically all it does is that when you press the green flag the costume you have decided to choose follows where ever you point the mouse. Th script is very simple as all i had to put was 'when green flag is clicked', i added 'forever' so that it doesnt stop, then i added the 'point towards' and i selected mouse pointer, so it obviously pionts towards the mouse. Then i added 'move' and selected a number so it moves because if i dont add it, the costume would only point towards the mouse pointer and wont move.
Here is what the script looks like

Tuesday, November 17, 2009
Second tutorial!!
Today i did my second tutorial, the tutorial i did is called 'moving animation'. In this tutorial it shows you how to make a costume move and turn when it touches the sides or the edges. To make it move you have to insert 'when green flag is clicked', in the script then you add 'switch to costume', then add 'wait' to make it wait how long ever you want it to wait and then you add 'move' how much ever you want to make it move or walk. You then add another 'switch to costume' ynder the wait and click how much you want it to move. add another 'wait', 'move under it and finaly add if on edge,b ounc. THis makes the costume move around and everytime it touches the sides and corners, it turns around and walk back towards the other end.
This is what the script looks like.

First tutorial!!!
Today im going to do my first scratch tutorial!! Im starting to the the "animate it". while doing this tutorial, i learnt how to edit a costume just by importing your chosed picture then clicking the edit button next to the copy. To animate the character, you have to the scripts and go to the controls to drag and add 'when clicked the green flag' to it, then drag forever loop to make it stay on the last picture you want it to look like. then you go to looks and drag 'switch to costume and attach it under forever. After you comand the switch costume to the costume you want, go back to control and add wait and enter how many seconds you want it to wait until the costume changes into a different one. To make the character change to the one you want, right click on the switch costume and select duplicate so that you dont have to go back to where you got it from.. after youve duplicated it drag the copy under the 'wait' and after youve dragged it also duplicate the 'wait' and add it under the second 'switch to costume'. If this is done correctly, when you press the green flag it should change from one costume to another. Remember to change the 'switch to costume' to two different costumes so that it changes.
As you can see this is what it turned out to look like...

I finally finished my first tutorial!!! =D yaayy i hope this is enough information...
Subscribe to:
Comments (Atom)