M
molikayess
Guest
Hi guys , i want to control only one object at the same time , because i created a board game , and each player have 4 pieces . It is possible on GMS to click with the mouse on a piece , to control only this piece and move it when you control it ?
I tried with this code at first , without the mouse , with vk_enter :
If u can help me it will be wonderful !
Sorry for my english guys !
I tried with this code at first , without the mouse , with vk_enter :
Code:
right = keyboard_check_pressed(vk_right);
left = keyboard_check_pressed(vk_left);
up = keyboard_check_pressed(vk_up);
down = keyboard_check_pressed(vk_down);
vitesse = 25;
while(keyboard_check_pressed(vk_enter)){
if right{
object11.x += vitesse;
}
if left{
object11.x -= vitesse;
}
if up{
object11.y -= vitesse;
}
if down{
object11.y += vitesse;
}
}
Sorry for my english guys !