Challenge 9
Problem:
A character fires a bullet and has to wait one second before being able to fire the next bullet.
Solution:
This one is easy because you you start off with problem 8 and then add a few things.
In the create event for the player set canshoot to true. Then In the Alarm 0 event set the variable canshoot to true or 1. Then In the Space bar event I set the variable canshoot to false and set the alarm0 to 30, and thats all you have to do to make the player have to wait one second to shoot.
Create Event
Set value of variable canshoot, value 1 or true.
Alarm 0
Set value of variable canshoot, value 1 or true.
Press Space
Set value of variable canshoot, value 0 or false
alarm0 to 30,
Help:
For this one I just needed to read the hint throughly.
Challenge 8
Problem:
You have to hit a character 3 times with a bullet before it dies.
For this one I started with challenge 4, then changed a few things.
The first thing I changed was the enemy object
In the create event for this I set the number of lives to 3.
Then in the Step event I made it that when there are no more lives it destroys the instances.
I also made it that when the bullet hits the enemy is destroys one life by setting the number of lives to -1 relative.
Help: I didnt need any help for this one.
Challenge 7
Problem:
Make a timer which counts up or down how much time is left to play.
Solution:
This one is relatively simple because all you need is the one object and no sprite, you just need to know the code.
First I made the object and called it time, then in the Events tab I made create and set a variable of mytime to 0, also in this event I set alarm 0 to 30. Then in the events tab I made I made alarm 0 and set the variable mytime to 1, I also set the alarm 0 to 30.
Lastly in the Events tab I selected draw and set draw a text. In the TEXT box you have to enter the following code 'time = ' + string(mytime) and set x to 0 and y to 0 and then the text will be displayed in teh left top of the screen.
This will make the counter count up.
Help:
I didnt need any help besides the hints.
Max Power
The origin of Max Power is from the episode of the Simpsons called Homer To The Max, where Homer leally changes his name to Max Power.

Challenge 5
Problem:
Make one object follow another object
Solution:
This is the 5th challenge for the class and was still easy it was a bit harder than the rest. To start with I created the sprites then it was on to the objects. First of all I made the moving object, create and mover random 360. Then to keep it in the room I made it that when it collides with the wall it bounces off. Then for the following object I made it a step event and action move to a point, I made this obj_move.x, and obj_move.y at a speed of 5.
Help:
For this one I didnt know how to do it at first but then I read the hints on the sheet and understood it.
Challenge 4
Problem:
When a bullet hits a character, the character explodes and the explosion then disappears. Provide information about how to play the demonstration in Game Information.
Solution:
This problem requires a bit more skill than the last one du e to the fact that it has more objects to deal with. I started off with problem 3 because the character was already moving and the code was already there. So the first thing I needed to do was get two more sprites an explosion sprite and an enemy sprite. I needed to add some code to the bullet so in the event it I made it that when it collided with the enemy it was destroyed. Then in the event for the enemy I made that when the enemy collides with the bullet it changes into the explosion, and finally in the events for the explosion I made that when the animation of the explosion finished it was destroyed.
Help: This one I didnt need any help because I knew what to do.
Challenge 1
Problem:
A ball bounces around a room and its direction is random. When the demo starts you can’t predict in which direction the ball will go. When the ball hits the walls you can’t predict in which direction the ball will go.
Solution:
To solve the problem I needed to create the sprites of ball and wall and then the objects. Then in the properties for the ball I made the direction random(360) and a speed of 5. I also made it that when it hits the wall it bounces random(360).
Help:
For help with this one i just needed to aks someone elsa about the random(360) thing.
Challenge 2
Make an animation from a strip sheet of stills.
a) one where all the slides are the same size (easier)
b) another where the slides are of varying sizes (harder)
Problem 2(a)
For this challenge I had to find a sprite sheet with an animation that moved. I chose the Astro sprite sheet, then I had to go to, FILE(create from strip).
Then I has to get the size of it right adn click ok. After this the rest are the same you have to click, FILE(add from strip) for each one.
Once all the images are in your done.
Problem 2(b)
This problem is pretty much the same as the first one, but I had to start with the biggest one first then I had to add the rest and resize them.
Help:
I didnt need help for this one because i have done it before.
Challenge 3
Problem:
A character can move left and right with arrow keys (you have to keep pressing the key for it to keep moving) and fires a single bullet forward when you press space bar. You have to release and press space bar again for more bullets. Provide information about how to play the demonstration in Game Information.
Solution:
This is a very simple problem and doesn’t need much skill to complete. The first thing to do is to get the sprites you want; I chose a character and a bullet after choosing the sprites once this is done you must go onto the coding. The code for the object (character) is as follows; I went to add event (left press) in this tab I went to the move tab and dragged the jump to a given position box and I made it x (-3), y (0) and relative ticked. ; I went to add event (Right press) in this tab I went to the move tab and dragged the jump to a given position box and I made it x (3), y (0) and relative ticked. Then I went to add event Key press(space) and I made it that when I press space that it creates an instance of an object (bullet) and I made x = obj_player.x, and y =obj_player.y. In the event for the object bullet I made it start moving in a direction up and a speed of 5.
Help:
For this problem i didnt need any help because i knew what to do from other gamemaker games.
-
Recent
-
Links
-
Archives
- April 2006 (2)
- March 2006 (5)
- February 2006 (9)
-
Categories
-
RSS
Entries RSS
Comments RSS