Weird drag effect...

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 :p
 
L

Lars Karlsson

Guest
I'm not sure, but it might be one of those cases where you want to use the 'End Step Event'.
Though I'm not sure I fully understand the problem.
 
Top