Is it possible to keep the mouse from passing a certain point?
I have a moveable object colliding with a static object, a throwing line. When the mouse goes beyond the throwing line, while the moveable object stays below the line, all of the actions and behaviors I have set are ignored. My idea was to keep the mouse from going past the throw line. Can anyone help me figure out how to make that work or is there a better solution for this?
Comments
The moveable actor is constrained to the mouse until it is released. Another option I was throwing around was to make the mouse release if it collides with the line, but I'm not quite sure how to set that up either. Or -- could I set a max distance the mouse can be away from the ball?
but constrain the max y of the ball to the y position of the line.
If you like, post a download link to your project. I'm sure if we can see it in action we can come up with a solution.
While testing this tutorial I tracked the speed of the ball. Turns out that the issue is not with the mouse but when the ball hits max speed (400). I'll post example.
not the actual game, but this demo shows exactly what's happening. the color changes are tracking size change and speed (red for over 350, green for width smaller than 75)