Trouble With Math.
Posted: Tue Jul 12, 2016 9:34 am
Hey guys.
So I decided to make my RPG point and click, however I've already encountered a problem haha.
I got the basics down but for some reason I'm having truoble with the landing and it seems pretty glitchy on the ride.
Basically from point A (where my player image is residing) to point B (the point inwhich mouse is clicked) the first thing the image does it rotate. Perfect. Then it moves to the point clicked. At this point maybe it is just me but it seems buggy while moving. Then once it gets to the end it makes a double image. I'm assuming that's because the code is telling it if it's not at the correct point (Which i know it will never be) to keep trying to get there. How do i stop this? Also how can I get around having to not call MouseX, MouseY in love.load.
Love file below.
Thanks!
So I decided to make my RPG point and click, however I've already encountered a problem haha.
I got the basics down but for some reason I'm having truoble with the landing and it seems pretty glitchy on the ride.
Basically from point A (where my player image is residing) to point B (the point inwhich mouse is clicked) the first thing the image does it rotate. Perfect. Then it moves to the point clicked. At this point maybe it is just me but it seems buggy while moving. Then once it gets to the end it makes a double image. I'm assuming that's because the code is telling it if it's not at the correct point (Which i know it will never be) to keep trying to get there. How do i stop this? Also how can I get around having to not call MouseX, MouseY in love.load.
Love file below.
Thanks!