GM Version: Gamemaker 2
Target Platform: ALL
Download: N/A
Links: N/A
Summary:
A way to code a burst fire gun/torrent, which can also be used to spawn enemies. You can control how many bullets to shoot, how fast to shoot them, and how long to wait between shooting.
Tutorial:
If you want...
I am attempting to implement a burst-fire mode. The problem is that it is only firing twice while it is coded to fire 3 times.
CREATE event
state = 0;
STEP event
if (obj_weapon.firing_style == "burst")
{
if (state != 1)
{
state = 1...
I have created the gun and it shoots off of a timer so there isn't a giant spray of bullets.
But what I want is for the gun to shoot in bursts. It's probably very obvious and i'm just not seeing it, i'm just starting so.
Here's the guns create code
CanShoot = 0;
FiringRate = 7; //Bullet per sec...