maxpower

Weblog aboth GameMaker challenges.

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.

Challenge 6

March 31, 2006 - Posted by | Challenges

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.