talkingalone

@talkingalone

Posts made by talkingalone

Looks like I managed to solve this. Originally, the tank movement was totally random. Now, to avoid them going bumping into walls without need, I have implemented a different solution that scans around the tank. Also -and I think this might have been the actual issue- I was calling overlap on each tank using a loop instead of passing a FlxGroup directly. Looks like it's working so far.

I'm making a copy of the game Battlecity for Game Boy, and I'm having an issue where the enemy tanks are penetrating through the walls of my map. The map has been made with Tiled and imported following the same procedure as in the TiledEditor demo. Here's a gif to illustrate (sorry about the shitty quality, the game is actually slower):

I'm trying to make a map of destroyable tiles, created using Tiled and imported with the tiled utilities in the addons library. The idea is to destroy a certain type of tile when a bullet collides with it.

The way I'm trying to do this is by using setTileProperties on the type of tile I want to make destroyable, and passing a callback method that looks like this: