greetings all, I'm new to this forum, but I've been a 2D game developer for over 5 years now.
I generally work in BASIC (of all kinds)
but I decided to try a game in GameMaker, so I hope some one has experience in the gamemaker language. (It's similar to C++)
At the moment, the game maker forums are down. crappy timing eh?
And let me tell you, the things that are easy, are easy.
But the things that are more difficult, are impossible.
So here's what I need help with.
I'm making a simple "follow the mouse" routine for a space ship.
The ship follows the position of the mouse until it
reaches mouse X,Y.
Once it reaches the position of the mouse, it starts freaking out
because it constantly switches directions as it's trying to get exactly on the mouse's X,Y.
I told it to only change direction if
object.x <> mouse_x
object.y <> mouse_y
but it's still stupid, I ran in debug to check the problem, and it seems my object's x and y are double precision. :/
so they are ALWAYS <> mouse
so...
floor(object.x) <> mouse_x
floor(object.y) <> mouse_y
should work right?
doesn't. same crap.
that's my problem. anyone think they got a better way?
Watch out, I'm the best there is. That means you too
Dark Dread.