B
baconlovar
Guest
Ok, so I'm working on my latest project and everything is going just peachy.
However, there is this weird drag effect when I "attach" two objects together with a step event...
This is how it should look
It's a small difference in these images but in-game it is very noticeable
The beige thingy behind the tiles (oInventoryGUI) does not have the drag effect: this is the oInventoryGUI's step event.
x = view_xview + (view_wview/4);
y = view_yview + (view_hview/4);
The problem is with those tiles dragging around for some reason, this is their create event:
mom = instance_nearest(x,y,oInventoryGUI);
x_dif = abs(x-mom.x);
y_dif = abs(y-mom.y);
Then the step event:
x = mom.x + x_dif;
y = mom.y + y_dif;
Any help would be appreciated
However, there is this weird drag effect when I "attach" two objects together with a step event...
This is how it should look
It's a small difference in these images but in-game it is very noticeable
The beige thingy behind the tiles (oInventoryGUI) does not have the drag effect: this is the oInventoryGUI's step event.
x = view_xview + (view_wview/4);
y = view_yview + (view_hview/4);
The problem is with those tiles dragging around for some reason, this is their create event:
mom = instance_nearest(x,y,oInventoryGUI);
x_dif = abs(x-mom.x);
y_dif = abs(y-mom.y);
Then the step event:
x = mom.x + x_dif;
y = mom.y + y_dif;
Any help would be appreciated