> https://dl.dropbox.com/u/23551572/C2/limitedAngleRange.capx
Thanks Yann. I will take a look after I upgrade to v104 this evening.
-AZ
Yann,
Thanks for this, it works perfectly for 180 degrees. I obviously made it way more complicated as I was working through the way the math would work on this.
So how does one change it so it can work the same but at different degrees?
Such as 90, 180 (working), and 360?
I assume targetAngle needs modification.
angle(target.X,target.Y,mouse.X,max(target.Y,mouse.Y))
I also have another idea for moving a paddle along a set of waypoints in order by waypoint UUID set in some particular shape where the paddle can move in either direction along the waypoints controlled by mouse or touch. I have not found anything like this here, but I think it could make for a neat game effect.
I have found someones [edit] Toxic's great example capx for a sprite moving along waypoints by UUID, but its not controlled by mouse or touch.
Here is the sample capx for waypoint movement. How would you integrate the movement controlled by mouse?
Thanks again Yann,
-AZ