V
Vanthex
Guest
Hi guys,
I created a step event for my object obj_selection that first it jumps to mouse_x and mouse_y, then I used code using move_snap for it so that it only goes to coordinates that are a multiple of 32. here is the code for move_snap:
However sometimes it doesn't always follow the mouse and it's very glitchy. Any suggestions?
obj_selection has depth -1, obj_tile has depth 0
Also, I have a right button event for another object obj_tile where it creates an instance using obj_selection's coordinates and with no animation and image_index is 4. But when I right click nothing happens, same with right button released and pressed. Here is the code for that:
I tried places where there are no obj_tile instances so it doesn't overlap, still nothing happens
I created a step event for my object obj_selection that first it jumps to mouse_x and mouse_y, then I used code using move_snap for it so that it only goes to coordinates that are a multiple of 32. here is the code for move_snap:
Code:
move_snap(32, 32);
obj_selection has depth -1, obj_tile has depth 0
Also, I have a right button event for another object obj_tile where it creates an instance using obj_selection's coordinates and with no animation and image_index is 4. But when I right click nothing happens, same with right button released and pressed. Here is the code for that:
Code:
with (instance_create(obj_selection.x,obj_selection.y,obj_tile)) {image_speed = 0;image_index = 4}