Snap-to-grid problem

For questions about using Classic.

Post » Sun Apr 10, 2011 11:50 pm

I'm using the following expression to get a 16x16 cursor to follow my mouse in a snap-to fashion...

cursor.x= int(mousex/16)*16
cursor.y= int(mousey/16)*16

It works fine and all, but the cursor tends to 'drag' behind a good bit when quickly moving the mouse. Is there any way to fix that?
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Apr 11, 2011 2:44 am

Here are two topics about mouse lag that may be helpful.
[url:3r2xgbn4]http://www.scirra.com/forum/viewtopic.php?f=3&t=5154[/url:3r2xgbn4]
[url:3r2xgbn4]http://www.scirra.com/forum/viewtopic.php?f=3&t=7771[/url:3r2xgbn4]
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests