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 | Leave a Comment

Game(off topic)

Elder Scrolls 4: Oblivion was released this week and it is awsome.

This is the 4th Game in the Series and features amazing graphics and a huge world to exlplore.

March 31, 2006 Posted by | Off Topic | 1 Comment

Port Adelaide

Power

The AFL Season starts this week and Port Adelaide will finish in the top 8 and win the flag for the second time.

The Crows will finish bottom!!

March 31, 2006 Posted by | Off Topic | Leave a Comment

Challenge 11

Problem:

Push a rock

Solution:

This one is relativly simple. This is what you have to do.

Create two sprites, a roch and something to puse it.\

For the character that is pushing the object make the move events like this,
Left: Start moving in a direction(Left) at any speed.
Right Start moving in a direction(Right) at any speed.
No Key: Stop moving in any direction.
Make it solid!

Now the code for the rock.

When it collides with Push
If an expression is true push.direction=0
Make push whatever the pushing object is called
If a position is collision free x=24 y=0 only solid and make it relative,
Jump to a given position x=24 and y=0 make it relative.

Thats it this will make the object push the rock.

Help: I didnt need any help for this one because it was so easy.

Push Rock

March 3, 2006 Posted by | Challenges | 1 Comment

Challenge 10

Problem:

A character jumps up off a platform, and return under the influence of gravity – you cannot jump from midair.

Solution:

This one is is the hardest problem yet because I have to add so much code.
Create 2 sprites a ball or any object and a wall.

For the movement of the ball you must set what happens when you hit the keys.
Up- If there is a collision at a position x0, y1 make it relative , and set the verticle speed to -10

Left- If position is collision free x-4, y0 make it relative. Make it jump to a given position x-4, y0 make it relative.

Right-If a position is collision free x4,y0 make it relative and jump to a given position x4, y0 make it relative

You must make it that when it hits the wall it stops.
Collision event with block, move to contact position direction is direction, maximum is 12 and solid objects. and set the verticle speed to 0 to make it stop moving.
Step Event for the Ball

Coment check in air.
If a position is collision free, x0,y1 relative.
Set the gravity, direction 270 and the gravity 0.5
ELSE
Set the gravity, direction 270 and the gravity to 0.5.
Coment: Limit Verticle speed.
If variable has a value, variable is vspeed, value is 12 and the operation is larger than.
Set the value of a variable, variable is vspeed and the value is 12.

Make the wall object solid or the ball will slip through.

Help: I didn't need any help for this one.
Challenge 10

March 1, 2006 Posted by | Challenges | 1 Comment

   

Follow

Get every new post delivered to your Inbox.