can_shoot = true;
if (keyboard_check(vk_space)) {
if (can_shoot) {
// Create a bullet
instance_create(x, y, obj_bullet);
// Shooting is unavailable
can_shoot = false;
// Set timer to make shooting available
alarm[0] = 10;
}
}
can_shoot = true;
instance_create_depth() or instance_create_layerinstance_create isn't a function in gms2, what should i use in place of that?
Now it uses instance_create_layer() and instance_create_depth() to create the instances. I think you can choose any of them but I think instance_create_depth() is easier somehow.instance_create isn't a function in gms2, what should i use in place of that?
In my opinion, you should read the basic guide for GameMaker: Studio 2. Like I said before, use Step event to perform your code every step (frame). Just add +1 your bullet object's x position. There is bunch of video / blog tutorials about basics of GM:S 2.it created the bullets, but how do i make them move?