I'm using Gamemaker studio 2 and I am fairly new keep in mind but I am fairly certain this isn't a problem on my side. I've been watching a youtube series on creating my first game using GML and my code looks EXACTLY like his and is not working.
if (mouse_check_button(mb_left)) {
instance_create_layer(x, y, "Layer_Bullet", obj_bullet);
}
This is where I'm getting an error. The error says:
##############################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_player:
instance_create_layer :: specified layer "Layer_Bullet" does not exist
at gml_Object_obj_player_Step_0 (line 11) - instance_create_layer(x, y, "Layer_Bullet", obj_bullet);
##############################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_player_Step_0 (line 11)
I have checked nearly 3000 times (exaggerated obviously) to make sure that the spelling is correct. I've renamed the layer, tried using a different layer. Nothing works.