collision problem with FlxTilemap
-
I'm having some weird problem using FlxTilemap.
Here's a gif to explain better:
https://i.gyazo.com/c86cb6dd27be61937dd45e763b27c608.gifThe problem is: the player (which is a FlxSprite instance) collides correctly until that point on map (it should stay on top of green block).
Do you have any idea of what is causing this?Thanks!
-
Try to set the world bound at FlxG.worldBounds. People tend to forget it.
There's a shortcut for tilemaps:tilemap.follow();
or you can set it manually:
FlxG.worldBounds.set(x, y, width, height);
-
Thanks, it was exactly this. Working great now!