L
LivelyLayla
Guest
Quick notifier, I'm completely new to game maker and making games in general.
So I'm trying to make a sidescrolling space shooter and I want a power-up that lets you shoot in 3 different directions instead of just forwards (like bullet spread, one bullet goes 45 degrees up and another 45 degrees down while the third goes straight). Is there a way to achieve this with just one bullet object? I know I can do it if I create 3 seperate bullet objects but that just seems horribly inefficient to me.
the code for normal forwards fire is as follows:
So I'm trying to make a sidescrolling space shooter and I want a power-up that lets you shoot in 3 different directions instead of just forwards (like bullet spread, one bullet goes 45 degrees up and another 45 degrees down while the third goes straight). Is there a way to achieve this with just one bullet object? I know I can do it if I create 3 seperate bullet objects but that just seems horribly inefficient to me.
the code for normal forwards fire is as follows:
//Create Bullet
if (firing = false) {
firing = true;
alarm[0] = firingSpeed
bullet = instance_create(x, y, obj_bullet);
}
if (firing = false) {
firing = true;
alarm[0] = firingSpeed
bullet = instance_create(x, y, obj_bullet);
}