C
Chad
Guest
So Im working on converting my project from PC to Android and it needs to be done by the 14th.. My problem right now is that I can't run and shoot at the same time. I have two objects on the left side of the screen that follow my view that i use for running. I then have 4 other objects (kinda like a dpad) that i use for shooting, they are all on the right side of the screenIHeres the running code:
Here is the Shooting buttons code:
All the code for all the buttons are very similar. I handle the movement and actual shooting in the same place as the PCs inputs. Please help!
Code:
/// Click
click = device_mouse_check_button(0,mb_left) || device_mouse_check_button(1,mb_left);
if (click)
{
with (instance_position(mouse_x,mouse_y,obj_left_control))
{
global.is_active_left = true;
}
}
else
{
global.is_active_left = false;
}
Code:
/// Click
click = device_mouse_check_button(0,mb_left) || device_mouse_check_button(1,mb_left);
if (click)
{
with (instance_position(mouse_x,mouse_y,obj_shoot_left))
{
global.shoot_left = true;
}
}
else
{
global.shoot_left = false;
}
x = view_xview[0] + wi
y = view_yview[0] + hi