That would definitely work. Remember to delete the bullet when the point of impact is recorded.
How many bullets can you shoot and how rapidly?
You can shoot 8 bullets in every frame (60 fps)
and btw could you help me a bit wtih this array ?
i have these 2 codes
this one is in the pixel's code :
STEP :
if position_meeting(x,y,obj_solid){
global.array[global.array+1,0] = self.x;
global.array[global.array+1,1] = self.y;
global.array += 1;
instance_destroy();
}}
and these one in the pixel drawer's code :
CREATE :
global.array = 0
global.array[0,0] = 0
global.array[0,1] = 0
//////////////////////////////////////////////////////////////////////
DRAW:
if global.array > 1 {
for (i = 1; i < global.array; i += 1)
{
draw_sprite(spr_pixel,0,global.array[i,0],global.array[i,1])
}}
*/*//*/*/*/*/*/*/*//*/*/
But i get this problem here :
Push :: Execution Error - Variable Index [1,1] out of range [1,-1] - -5.array(100000,32001)
at gml_Object_obj_pixeldraw_DrawEvent_1 (line 4) - draw_sprite(spr_pixel,0,global.array[i,0],global.array[i,1])
############################################################################################
Sorry for my miserable coding skills but i haven't really worked whit arrays