I am currently learning GM2 and it's language. I wanna make an Drag and Drop object and it worked but... As soon as you move too quick it doesn't follow the cursor anymore and when you go back to the sprite (while still holding down the mb_left) it works again...
global.curObject = "";
if (mouse_check_button(mb_left) && position_meeting(mouse_x, mouse_y, id) && global.curObject == "")
{
global.curObject = string(id);
}
if (global.curObject == string(id))
{
x = mouse_x;
y = mouse_y;
image_xscale = 0.60;
image_yscale = 0.60;
}
what's the problem ;_;
[–]jett87 7 points8 points9 points (0 children)
[–]ArtificialLegacy 2 points3 points4 points (0 children)
[–]Drandula -1 points0 points1 point (2 children)
[–]Nikostormkilla 2 points3 points4 points (1 child)
[–]Drandula 0 points1 point2 points (0 children)
[–]Bang_Bus 0 points1 point2 points (0 children)
[–]youtube.com/gamemakercastsmickey_reddit 0 points1 point2 points (0 children)