98cca7 No.29538
Using Game Maker: Studio. The players X and Y coordinates can equal values with decimals. (Example x = 19.198213) Should I floor the coordinates to equal whole integers? This is only for tracking the players position, not for changing his coordinates manually.
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
8b15f9 No.29628
This depends on what you're trying to accomplish. It's also partially about the limitations of the engine you're dealing with.
If you want to track the player's position to execute some sort of event, using floored coordinates will give you a 'radius' where the event takes place, where exact coordinates would mean that the place where the event occurs is very, very precise.
What are you trying to accomplish with tracking the player's position?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
838d5a No.30416
Yes, floor them.
If you need to do any calculations on the coordinates, pass the raw unfloored ones in...then floor the result afterwards.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.