Problem with Drag & Drop - Delay on Movement

Discussion and feedback on Construct 2

Post » Fri Sep 12, 2014 9:32 pm

I'm pretty sure I've read something about it on this forum before, but could not find again.
Well, since I started using the construct, I noticed that when using behavior, "Drag & Drop", the object always has a delay to follow the movement of the mouse / touch.
I can imagine some of the reasons for that to happen, but it has some way to avoid this problem? Any tips?
Thanks for the personal attention.
Posts: 188
Reputation: 1,377

Post » Sat Sep 13, 2014 11:40 am

I am afraid that it is not possible. I think the object is lagging behind the actual mouse cursor because 60 ticks per second aren't enough for precision positioning. You can notice that is you set any Sprite to follow the mouse coordinates (every tick---> Sprite| set position (mouse.X, mouse.Y) and it falls behind exactly the same amount as the drag&drop object does.

It really bothers me too, I want to make custom corsairs and other stuff that follows the mouse position and the lagging is very noticeable. The only workaround I've found is the "set the cursor from sprite" action, but it has its drawbacks since it only supports a fixed size and it will scale the Sprite to that particular size (I think it's 26x26 pixels).
composer - multimedia artist
Posts: 1,146
Reputation: 10,379

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 15 guests