Tagged Questions
0
votes
0answers
43 views
Box2D and randomly generated tilemaps
I am making a 2D Terraria-style sidescrolling game. I want to use box2d for the physics. However, I am using tilemaps for the maps, and I do not know of a processor-efficient way to use Box2D bodies ...
2
votes
3answers
121 views
(LibGDX) Changing Origin of Box2D World relative to TiledMap (or Vice Versa)
I'm playing around with Box2D and TiledMaps and I've come across this minor annoyance.
As you can see, both Box2D and TiledMap render at the center of the screen. This forces me to compensate by ...
2
votes
2answers
2k views
How can I convert a tilemap to a Box2D world?
I want to use Box2D physics and lighting with a .tmx map. How can I "convert" a tilemap to Box2D world? My basic idea is to go through the tiles on the map and create an object for them in Box2D.
I'm ...
1
vote
2answers
340 views
How do I make a Box2D object that makes objects passing through it slower?
I wish to have a sort of "slow motion" or "slow down" effect on a players character when they walk in a mud area, usually the character velocity is 3f constant in any one direction. The problem is I ...
1
vote
1answer
282 views
Making a 2D TMX tile map
Should there be a specific link between the characters height as well as the tile size for the tile maps? That is if a tile is 32x32 does that mean that a character sprite has to be the same size? ...