Challenge6
Problem:
A ball goes through a goal and the score goes up by one…the score does not go up if the ball misses the goal.
Solution:
This one was harder than the rest because at the start I couldn’t work out what to do from the hints but after a while I knew what to do. First of all I created the two sprites one foe the ball and one for the wall. Then I started the coding for the ball the first thing was CREATE and make it random (360). Now it was onto the hardest part the STEP event of the ball. In this STEP event I made that if an expression is true and I made it (y 32), you can change 32 to wherever the goals are. Then I made it the start of a block a few things must go in this block and they are, set the score to one, create an instance of the ball in the middle of the screen and finally destroy the instance on the original ball then end the block. The last thing I did was make it that when it hit the wall it bounced off.
Help: For this one I really needed the help of the hints.
No comments yet.
Leave a Reply
-
Recent
-
Links
-
Archives
- April 2006 (2)
- March 2006 (5)
- February 2006 (9)
-
Categories
-
RSS
Entries RSS
Comments RSS