| |
Bullet Fireing in GM7
Datt |
|
I'm having a blast
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif)

Group: Members
Posts: 1022
Member No.: 4623
Joined: 24-October 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
Create a player object, and a bullet object.
In the Player's create event
| CODE | canfire = true isleft = false // the rest of your stuff
|
Create a "press a key" event. Choose whatever key you want to press to shoot.
In that event
| CODE | if canfire = true { instance_create(x?, y?, bullet) canfire = false alarm[0] = 10
|
In the Players Alarm 0 event
Whoops, you never specified if the gun is in the sprite of the character...That's what this is for. If you have the gun as a seperate object it shouldn't be too much different. Also, you never said if it was a topdown shooting, fps, or platform shooting. This is for platform or topdown..Sorry This post has been edited by Im4everkool on Jul 31 2008, 07:34 PM
--------------------
| QUOTE (Mario_6464SMR's reply to Mrs A) | | his name's not Halo it's the master chief, and i don't know what "doesn't afraid of anything" means, have u ever played halo before? |
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
[ Script Execution time: 0.0556 ] [ 14 queries used ] [ GZIP Enabled ] [ Server Load: 0.41 ]
| |