0
\$\begingroup\$

I am using libgdx & trying to implement a Binding of Issac like dungeon. To do this I'm loading a tmx map when a dungeon room is created and rendering it to the screen. The issue is that the each room renders the map in the same place on top of each other. This all boils down to one question: How can I render a map at a specific x,y position, so that I can display the whole dungeon at once?

\$\endgroup\$
3
  • \$\begingroup\$ It'd be easier to troubleshoot the issue if you posted an example of what you're doing or what you've tried thus far to solve the issue. \$\endgroup\$
    – John
    Nov 22, 2016 at 3:14
  • \$\begingroup\$ As far as I remember, Binding of Isaac always shows only one room at a time: the room the player is currently in. Do you want to do the same or do you want fluent scrolling between rooms? \$\endgroup\$
    – Philipp
    Nov 22, 2016 at 10:46
  • \$\begingroup\$ I was going for a scrolling effect between the rooms \$\endgroup\$ Nov 23, 2016 at 5:19

1 Answer 1

-1
\$\begingroup\$

Short answer: you can't. A tiled map is always rendered at (0, 0). The only way to change this would be to implement some sort of hack; perhaps using VBOs to save each room to a texture then render it with an offset.

\$\endgroup\$
3
  • \$\begingroup\$ This answer seems speculative, and contradictory. If you can't, why are you suggesting that you can? \$\endgroup\$
    – Gnemlock
    Jun 2, 2017 at 3:17
  • \$\begingroup\$ It's not contradictory at all. You can't render a Tiled Map at any other position than (0, 0) however you can render a VBO at any other position than (0, 0). \$\endgroup\$
    – Charanor
    Jun 2, 2017 at 6:52
  • \$\begingroup\$ How would you suggest I edit this answer to make it better? \$\endgroup\$
    – Charanor
    Jun 2, 2017 at 6:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .