R
Rick-V
Guest
hello i'm pretty new on GMS and recently i found a problem:
i was trying to make a movement like chess, here is the code, casella_movimento stay for "movement_slot"
step event:
slot collision event:
the problem is that the player doesn't move at the slot's x, y.
Could anybody help me please?
thanks a lot!
i was trying to make a movement like chess, here is the code, casella_movimento stay for "movement_slot"
step event:
Code:
mb_left = mouse_check_button(mb_left);
///slots
if(mov == true){
instance_create(x+40,y,obj_casella_movimento);
instance_create(x,y+40,obj_casella_movimento);
instance_create(x-40,y,obj_casella_movimento);
instance_create(x,y-40,obj_casella_movimento);
mov = false;
}
Code:
///movement
if(mb_left){
x = other.x;
y = other.y;
mov = true;
}
Could anybody help me please?
thanks a lot!