GameMaker: Studio

GameMaker: Studio

Find, play, and make games easily
Discover, rate, and download the best player-created games made in GameMaker: Studio for free. Or try making your own and share with the community. Click here to learn more.
Sprite jitters and vibrates when centered on mouse
This must be a common problem but I have been trying all night and have found no resolution.

A sprite has two Actions: Create and Mouse (No Click) [Please note I am using the latest FREE version of GameMaker studio and am using the D'n'D features]

The Create action has Go To Point Event, set to "Other," and the coordinate point mouse_x for x and mouse_y for y.

The Mouse action (No Click) has Go To Point Event, set to "Self," the coordinate point mouse_x for x and mouse_y for y, and the speed is set to 20.

When sprite reaches the mouse cursor, it vibrates. Not cool. What's wrong?

Thanks!
< >
Showing 1-2 of 2 comments
melon king 4 10 Aug, 2015 @ 8:23pm 
It's "overshooting" the cursor position, making it turn back and try to go towards the cursor again.
Alas, it's efforts are in vain as it overshoots once more!
And it keeps overshooting, because it's set to move 20 pixels (or anything above 1 I think) and no less, never able to touch reach its goal :( . That's the vibrating you see.

Alternatively, it is always being told to move so that even though it may be on the mouse position, it will still move away from your Go To Point.
Daynar 8 10 Aug, 2015 @ 11:51pm 
Originally posted by ₍₍ (ง ˘ω˘ )ว ⁾⁾:
It's "overshooting" the cursor position, making it turn back and try to go towards the cursor again.
Alas, it's efforts are in vain as it overshoots once more!
And it keeps overshooting, because it's set to move 20 pixels (or anything above 1 I think) and no less, never able to touch reach its goal :( . That's the vibrating you see.

Alternatively, it is always being told to move so that even though it may be on the mouse position, it will still move away from your Go To Point.
This is the problem. To fix it check to see if it is within 20 pixels of the mouse curser and if it is snap it to the mouse curser otherwise have it move towards
< >
Showing 1-2 of 2 comments
Per page: 1530 50