Rafael Augusto
Member
I need some help! the bullet is not firing at the center of the crosshairs all the time. It was working I bought a new monitor and I'm still using it at the same 1920 x 1080 resolution it may not be related to the monitor it may be a game maker update! the crosshair and bullet are set to "middle centre" and the "bullet fire" code is:
it was working now a i need help
GML:
if mouse_check_button(mb_left) && global.shotzz == "mb_left"
{
if (global.atira == 2 && global.firi == 2 && global.subammo > 0)
{
global.firi = 0;
audio_play_sound(Shot, 20, false);
instance_create(mouse_x, mouse_y, OX);
alarm_set(11, 15);
global.firi = 0;
global.subammo--;
}
if global.atira == 2 && global.firi == 2 && global.subammo < 1
{
global.firi = 0;
audio_play_sound(Fail, 20, false);
alarm_set(11, 15);
}
if (global.atirax == 2 && global.foguex == 2 && global.canammo > 0)
{
global.foguex = 0;
audio_play_sound(Shotgun, 20, false);
instance_create(mouse_x, mouse_y, OXE);
alarm_set(9, 30);
global.foguex = 0;
global.canammo--;
alarm_set(11, 05);
}
if global.atirax == 2 && global.foguex == 2 && global.canammo < 1
{
global.foguex = 0;
audio_play_sound(Fail, 20, false);
alarm_set(9, 30);
alarm_set(11, 05);
}
}
// crosshair
cursor_sprite = Mirasub;
Attachments
-
338.1 KB Views: 8
Last edited by a moderator: