Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8419221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:33:14+00:00 2026-06-10T02:33:14+00:00

I have a tile system written in XNA, and there is problems with tiles

  • 0

I have a tile system written in XNA, and there is problems with tiles fitting together.

What I mean is, sometimes tiles are separated by 1 pixel (maybe 2 pixels? can’t tell), and they are suppose to fit together perfectly. I am certain the math I did to get them together is right, I don’t know what is causing the issue.

Surprisingly this issue is fixed when I raise the size of my tiles (a double) to 1000. Size is only relative to my camera zoom, so this does not affect game play at all, but it bothers me I have to do this.

Any ideas on what could be causing this?

edit: infact anything below a tile size of 995 has the issue, but anything above is good, this is some kind of weird precision issue. Is double math more accurate with high numbers or something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:33:15+00:00Added an answer on June 10, 2026 at 2:33 am

    Well, pixels are integers, and if the size of your tiles are in doubles, that means you must be doing some sort of conversion to get the pixels, which in turn is probably where you are getting the separation.

    For example if tile A starts at 0, and is 9.9 in length, where do you put the next tile?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Tile s which represent the tiles in a game's 2-dimensional world. The
I have a tile-based RPG system where a specific tile type is represented by
I have written a program in Python that generates a 10,000 tile coordinate plane
I have written a Windows 7.5 phone app that registers for tile and toast
I am working in Google Maps and have three+ tile overlays to create. An
I have a MapTile class which holds a tile sprite and the tile's attribute.
I have been following a tutorial on how to write a basic tile map
Hey guys I have a object sitting in my tile map for spawn point
imagine that I have a Form with 9 controls (TabbedStuffControl) in a 3x3 tile,
I have a data source, containing the following columns: ID | Tile | Score

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.