Typo

Sorry everyone. I made a typo in question six. I was supposed to write 45+random(90), but I wrote 45+random(135). Sorry for anyone using my blog. You will have to check your game and check my Problem 6.

Published in: on February 27, 2006 at 12:19 am  Comments (4)  

Problem 9.

A character fires a bullet and has to wait one second before being able to fire the next bullet.

Load a character sprite and a bullet sprite.

Add an object and use the bullet sprite. Click on add event, create. Drag the red arrows, under the move tab, into the action section. When the popup appears, click only the up arrow. Type how fast you want the bullet to go in the speed section.

Add another object and use the character sprite. Click on add event, create. Drag set the value of a variable, under the control tab, into the action section. When the popup appears, type canshoot into the variable section. Also, type 1 into the value section.

Click on add an event, keypress, space. Drag if a variable has a value, under the control tab, into the action section. When the popup appears, type canshoot into the variable section. Type 1 into the value section, and select equals to in the operation section.

Drag both start and end of block, under the control tab, into the action section. In between them, drag create instance of an object. When the popup appears, select the bullet object in the object section, and click the relative box.

Also between the blocks, drag set the value of a variable. When the popup appears, type canshoot in the variable section, and 0 in the value section.

Also between the blocks, drag set an alarm clock, under the main2 tab. When the popup appears, type 30 in the number of steps. and press ok.

Click on add an event, alarm0. Drag set the value of a variable, under the control tab, into the action section. Type canshoot in the variable section, and 1 in the value section.

Test this by putting the character in a room, and pressing space. You should only be able to shoot a bullet every second.

I got help for this problem by looking at coding on the game 1945, created by Mark Overmars. The 1945 game helped me by showing me how to use the variables, as i have never used this before. I would like to thank him for creating such a helpful game.

screenshot7.JPG

Even spaced bullets, only shooting once per second.

Published in: on February 23, 2006 at 7:15 am  Comments (10)  

Problem 8.

You have to hit a character 3 times with a bullet before it dies.

I recommend you only attempt this after you finish problem 4.

Load up your problem 4 game.

Open the enemy object. Click on the create event. Drag set the number of lives, under the score tab, into the action section. When the popup appears, type 3 in the new lives section. Click ok. Click on the already made collision with bullet event. Drag set the nuber of lives, under the score tab, into the action section. When the popup appears, type in -1 in the new lives section. Click the relative box, then ok. Delete the change instance into explosion.

Click on add event, Step. Drag If lives are a value, under the score tab, into the action section. When the popup appears, type 0 in the value section, and select equals to in the operation section. Then drag both start of block and end of block, under the control tab, into the action section. In between these, drag change the instance, under the main1 tab. When the popup appears, select object explode in the change into section, and yes in the perform events section.

Test the game, to see if the enemy will explode after 3 bullets.

I did not need help with this problem, as i learnt how to do it last year.

screenshot6.JPG

The enemy with 3 lives.

Published in: on February 23, 2006 at 5:49 am  Comments (4)  

Maxymous

This is another one of my friends. He has only started gamemaker this year, but you never know how useful his site may be. Check it out at:

http://Maxymous.wordpress.com

If it doesn’t work, click on Maxymous on my blogroll.

Published in: on February 22, 2006 at 9:44 am  Comments (4)  

Problem 7.

Make a timer which counts up or down how much time is left to play.

Create an object. You do not need a sprite. Click on add event, create. Drag set the value of a variable, under the control tab, into the action section.When the popup appears, type mytime into the variable section. Type how long you want the timer to countdown into the value section. Drag set an alarm clock, under the main2 tab, into the action section. Type in room_speed, or 30, into the number of steps section. Select alarm0 in the alarm no. section.

Click on add event, alarm0. Drag set the value of a variable, under the control tab, into the action section. When the popup appears, type mytime in the variable section. Then type -1 in the value section. Tick the relative box.

Click on add event, draw. Drag draw a text, under the draw tab, into the action section. Type ‘time =’ +string(mytime) into the text section. Leave the x and y sections 0.

Put this object in a room, and play it, to see if it works.

I recieved help from Jrb01 on this problem. I did not know what to type in the variable sections, so i followed his advice, and the timer worked.

timer.JPG

My timer.

Handy hint.

If you want your timer to be a different colour, drag set the colour, under the draw tab, into the action section of the draw event. When the popup appears, select the colour you want.

If you want the text of the timer to be different, add a Font. Choose the font you want then press ok. Then under the draw event of the timer, drag set the font, under the draw tab, into the action section. When the popup appears, select the font you chose.

Published in: on February 22, 2006 at 9:35 am  Comments (3)  

Murasame

This is another friend of mine. He Is not as skilled in the programming of gamemaker, but he is still pretty good. If you need another opinion of how to solve the problems, visit his site.

http://murasame.wordpress.com

If the link doesn’t work, click on Murasame on my blogroll.

Published in: on February 22, 2006 at 8:43 am  Comments (54)  

Problem 6.

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

Add a sprite of a ball. Also add a sprite of goal posts (does not have to look like actual goal posts)

Add an object and use the ball sprite. Click add event, key press, space. Drag the blue arrows, under the move tab, into the action section. when the popup appears, type in 45+random(90) in the direction section. Type how fast you want the ball to move in the speed section. Click on add event, other, outside room. Drag jump to the start position, under the move tab, into the action section. When the popup appears, click self, then ok. Then drag the red arrows, under the move tab, into the action section. Click only the square, stop button, when the popup appears.

There are many ways of creating the goal system. I chose to create a goal object. Create an object and use the goal sprite. Click on add event, collision with the ball object. Drag set the score, under the score tab, into the action section. When the popup appears, type 1 in the new score section and tick the relative box. Drag jump to the start position, under the move tab, into the action section. When the popup appears, click on other. Drag the red arrows, under the move tab, into the action section. When the popup appears, click on other.

Test the game by creating a room, and putting a ball at the bottom of the screen, and if you followed my directions, put the goal only at the top. If you put different directions into the blue arrows on the ball, put the goals there.

This is only one way of solving this problem. There are many other ways. My game had a shooter run up and take a random shot. My friends game made the ball stop when you released the space bar. This is a few more examples of how you could solve it.

I needed help with this problem. My teacher helped me by showing me the directions of which the ball should go, if I want it to be random.I would like to thank him for helping me.

soccer.JPG

My version of this problem.

Version

Add a shooter and a field to the game. It will be a bit more complex, but it can be done. If you need ideas, look at my picture.

Published in: on February 22, 2006 at 8:39 am  Comments (11)  

jrb01

Jrb01 is one of my friends. He is kind of a computer freak (always upgrading things in his computer) but he is quite good at gamemaker. If you need some more info about one of these problems, go to his site.

http://jrb01.wordpress.com

Hopefully the link works, otherwise just click on JRB01 in my blogroll to see his site.

Published in: on February 22, 2006 at 7:03 am  Comments (8)  

Problem 5.

Make one object follow another object.

Add 2 sprites, they can be anything you want them to be.

Add an object. Use the sprite you want to be the leader. Call the object leader.

Click on add an event, Create. Drag the red arrows, under the move tab, into the action section. When the pop up appears, click all the arrows, but not the square in the centre. In the speed section, type how fast you want the object to move.

Click on add an event, other, outside room. Drag jump to a random position, under the move tab, into the action section. When the popup appears, click ok. Drag the red arrows, under the move tab, into the action section. When the popup appears, click on all of the arrows, except the square in the centre.

Add an object, and use the other sprite. Call the object follower. Click on add an event, step. Drag move towards a point, under the move tab, into the action section. When the popup appears, type in (leader).x in the x section, (leader).y in the y section. Type how fast you want the object to move in the speed section. Click on add an event, collision with leader. Drag jump to a random position, under the move tab, into the action section. When the popup appears, click ok.

Open the leader object again. Click add an event, collision with follower. Drag jump to a random position, under the move tab, into the action section. When the popup appears, click ok. Then drag in the red arrows, under the move tab, into the action section. When the popup appears, click on all of the arrows, not the square. Type how fast you want the object to move in the speed section.

Create a room, and put in one leader and one or more followers. Play the game to test if the follower moves towards the leader.

I did not need help with this problem, as I have done this last year.

follower.JPG

The follower(blue) moving towards the leader(green)

Published in: on February 22, 2006 at 6:57 am  Comments (4)  

Evangeline Lilly

kate2.jpg 

Kate (from lost) real name is Evangeline Lilly. She is the best actress ever, and she is on the best TV show ever. Lost Rules!!!!

I found some facts about her. Here they are.

» BIOGRAPHY

Evangeline Lilly’s combination of irresistible charm and natural talent is earning her a reputation as one of the most promising young actresses in Hollywood.
Three years ago Lilly was discovered by a Ford agent on the streets of Kelowna, BC, but passed up an offer to sign with the agency. While acting had been a dream of hers since she was a teenager, she abandoned the notion for the more aesthetic dream of working in international relations. Six months later Lilly moved to Vancouver to attend the University of British Columbia and decided to sign with Ford to help pay for tuition. After appearing in a few commercials, she decided to give up acting and focus on studying. A couple of years later, a friend urged her to give acting another shot and, after a role in “Kingdom Hospital,” Lilly caught the acting bug.
Lilly founded and ran a world development and human rights committee at her university. She has lived under a grass hut in the jungles of the Philippines with a missionary group, and has been a volunteer for children’s projects since the age of 14.
Lilly is fluent in French and loves ice skating, canoeing, kayaking, snowboarding and rock climbing.
PERSONAL INFORMATION
HOMETOWN: Fort Saskatchewan, Alberta (Canada)
BIRTHDATE: August 3, 1979
Thanks to ABCMedia
 

Published in: on February 21, 2006 at 6:09 am  Leave a Comment  
Follow

Get every new post delivered to your Inbox.