S
splendidtank
Guest
The instance_create_layer function is not working my code is:
In the HTML build no oGunPickup is spawning. Works fine in the Windows build...
Code:
if (instance_exists(oPlayer)) && (point_in_circle(oPlayer.x,oPlayer.y,x,y,64))
{
nearby = true;
if (keyboard_check_pressed(ord("Q"))) && (!instance_exists(oGunPickup)) && (!instance_exists(oGun))
{
image_index = 1;
show_debug_message("wow");
instance_create_layer(x+2,y-2,"gun",oGunPickup)
}
}else nearby = false;