maxpower

Weblog aboth GameMaker challenges.

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.

Shoot

February 28, 2006 - Posted by | Challenges

1 Comment »

  1. it’s good, would be even better to show some code

    Comment by Bill Kerr | March 4, 2006


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.