Welcome to PGD
If this is your first visit, be sure to check out the FAQ by clicking the link above. You have to register before you can post.
If you have recently signed up, please make sure you log in so that your activity is registered. This is required for automatic promotions to work and to ensure your account is not deleted during the registration process.
AthenaOfDelphi
Just use XPos and YPos to find your grid location from actual location. Then use XLoc and YLoc on that returned value to do the actual 'snapping'. Think of it like rounding a decimal value.
Jason McMillen Pascal Game Development Co-Founder
Forum Rules
Bookmarks