Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been learning Java for a while, and with my aims of being a game developer later in life, I've came across Slick2D+lwjgl and following tutorials and making some little things. However; I don't have a clue what to do when it comes to the tileD maps. here's what I've done so far; I've made my map and it's called map.tmx and it has collision objects in it, how do I get my code to run this map and the sprite to "interact" with it. Thanks for any help :)

Edit: I got it rendered onto the program... but how can I make the sprite stop on some platforms I've made? :)

share|improve this question

closed as not a real question by Josh Petrie, Anko, msell, Byte56, bummzack May 21 '13 at 9:49

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

You need to create polygons to check for collisions and check them every step in updating the position. I found example in the internet and try translate comments to English. You can download example.

Other way is creating collision map, like this

P.S. Sorry for Google-translate.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.