Hi Everyone!,
I'm porting some old code I did in 2011. In this game, I have a train-like vehicle that goes between stations, and the player is able to get into it. The level itself uses a TlxTilemap, whereas the train uses a movable FlxTilemap for collision detection. You can see the ActionScript version of the game here
http://www.ciroduran.com/files/2011/metro/Metro.html.
However, after porting the game to HaxeFlixel, I noticed that the FlxTilemap object produces a collision to the LEFT of the player sprite, which in my game it translates to the player unable to exit the train to the left, when the train is on the right side of the station. The player is able to enter the train, but exiting is impossible, even by setting the border tiles to transparent.
This behaviour was not present in the original Flixel, and it has frustrated me the entire week. There is a
similar discussion with Pacman in the forum, but the solution proposed (padding one tile to the left) is not acceptable to me, as it will not solve my problem. Compare the ActionScript version to the Haxe version here
http://ciroduran.com/files/2015/metro/Metro.html (get into the train, go to the other station, exit the train, wait until it comes out again from the right, and enter the train, you will not be able to exit to the left).
I would appreciate if someone could point me to the way I could disable this collision in the tile map, as I have not seen the "prevent player from exiting to the left" option in FlxTilemap :-)
Cheers,
Ciro.