- Game Maker Community
- → Viewing Profile: Posts: Smiley Showdown
Smiley Showdown
Member Since 10 Nov 2010Offline Last Active Dec 16 2011 06:56 PM
Community Stats
- Group New Member
- Active Posts 10
- Profile Views 1491
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
Posts I've Made
In Topic: Imaginary Numbers
03 April 2011 - 05:38 PM
In Topic: Music Problems
07 February 2011 - 01:25 PM
In Topic: Music Problems
04 February 2011 - 10:39 PM
In Topic: Music Problems
04 February 2011 - 12:59 AM
In Topic: Making a Gun
10 November 2010 - 01:30 AM
Also, I know that there is a way to do this, but I don't remember.
Is there a way thaqt I can make the gun only shoot about every 5 steps? I know it is something like:
[Global left mouse] //in obj_gun
[If (whatever variable) is larger than 0
Create moving instance of obj_bullet
Set (whatever variable) to 0
Set Alarm (x) to 5]
[Alarm (x)] //in obj_gun
[Set (whatever variable) to 1]
I tried the variable can_shoot (like in the scrolling shooter tutorial) and got an error message:
ERROR in
action number 1
of Mouse Event for Glob Left Button
for object obj_gun:
Error in expression:can_shoot
position 1: Unknown variable can_shoot
The way I would do tis is create a variable called reload and when you shoot, it checks to see if the variable is true. After you shoot, it changes the variable to false and sets an alarm to an unspecified amount of steps. The alarm changes the variable to true
- Game Maker Community
- → Viewing Profile: Posts: Smiley Showdown
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content