I am trying to find a better way to detect collisions on my bird’s eye view RPG. I have the map setup into different bitmap layers based (ground, clutter, collidable objects). These bitmap layers are added to the screen within a container object. The reason for this is when the player moves around the screen, depending on the location of the player and where s/he wants to go, either the player will move, or the container object will move.
My issue is now trying to get a bitmapData.hitTest() query to work between the player bitmap and the collidable layer of the screen. I am not sure how to get this to work with moving the container object or the player around.
*** SOLVED*** I figured out the solution. When I am to set the secondary point, if I just put in my mapoffset values it works fine. But I don’t like the end result. I would have preferred a non-pixel for pixel collision test, but more of an individual tile on collidable layer is 32x32, player is 32x32, check to see if any part of player (whether transparent or not) is overtop of any part of the tile (transparent or not).