Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Custom mouse pointer rotation is erratic

Started 1 month, 2 weeks ago by Trugas
Ok well I'm not really replacing the mouse cursor exactly. Just placing a custom image of a pointer below it so it will follow the mouse cursor as it moves around the screen. I want this pointer image to move with the mouse and to rotate and point in the direction the mouse is traveling. Simple stuff. The problem is that the rotation of the pointer graphic is not smooth at all. It is jumpy ...
Site: Flash Kit Community Forums  Flash Kit Community Forums - site profile
Forum: Flash General Help  Flash General Help - forum profile
Total authors: 1 author
Total thread posts: 3 posts
Thread activity: no new posts during last week
Domain info for: flashkit.com

Other posts in this thread:

Trugas replied 1 month, 2 weeks ago
Ok, so to explain exactly what I'm seeing: The movieclip graphic following under the mouse is not rotating smoothly. What actually appears to be happening is that the graphic is snapping to 45 degree increments at slow speeds. This only gives eight steps in a rotation. Again, this only happens when the mouse is moving slowly. When the mouse is moving in a direction that is not exactly ...

Trugas replied 1 month, 2 weeks ago
Ok I think I found the problem. Mouse coords are only integers not numbers. This lack of precision means that the smallest distance the mouse can move on the x or y axis is exactly 1 px (or -1px), of course it can also not move at all (0 px). These values can only give eight solutions (left, right, up, down and the four diagonals). So the graphic will only point in one of these eight directions ...

 

Top contributing authors

Name
Posts
Trugas
3
user's latest post:
Custom mouse pointer rotation is...
Published (2009-11-09 20:51:00)
Ok I think I found the problem. Mouse coords are only integers not numbers. This lack of precision means that the smallest distance the mouse can move on the x or y axis is exactly 1 px (or -1px), of course it can also not move at all (0 px). These values can only give eight solutions (left, right, up, down and the four diagonals). So the graphic will only point in one of these eight directions when the mouse is moving very slowly. Any ideas...

Related threads on "Flash Kit Community Forums":

Related threads on other sites:

Thread profile page for "Custom mouse pointer rotation is erratic" on http://www.flashkit.com. This report page is a snippet summary view from a single thread "Custom mouse pointer rotation is erratic", located on the Message Board at http://www.flashkit.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity