So here is my code:
public function SecWorld()
{
map = new Level2();
mapOver = new Level2OverPlayer();
add(map);
add(mapOver);
player = new Player();
add(player);
hudImage = new FXImage(GameConstants.HUD_BOTTOM);
hudImage.scrollX = hudImage.scrollY = 0; // set these to 0 so it won't move around with the camera
var hudEntity:Entity = new Entity(0, FP.camera.y + FP.screen.height - hudImage.height, hudImage);
// score text (upper right corner)
scoreText = new FXText("SCORE: 000000", hudEntity.x + 5, hudEntity.y + 3);
scoreText.scrollX = scoreText.scrollY = 0; // set these to 0 so it won't move around with the camera
scoreText.effects.add(textOutlineFX);
var scoreEntity:Entity = new Entity(0, FP.camera.y, scoreText);
// hud layer (contains our unmoving hud)
hudLayer = new FXLayer();
hudLayer.entities.add([hudEntity, scoreEntity]);
addGraphic(hudLayer);
}
Now I try to describe it:
map is Entity which has graph = new Image(); size 2500x2500 px and the same size mask whith some changes, but still 2500x2500.
mapOver is a entity with graph with dynamicaly changing layer. I just need sometimes this part of map be over the player.
Player dynamically changing his layer=-y;
I’m still using hudLayer with FX. I’m not sure if I use it properly.
Finally: I try to make isometric game but I don’t use tiledMap, but use png with proper masking.
I hope I write with sense… I’m so confused about this technology and just want to start writing my game mechanics, not only thinking how tu use tools…
But thanks for help! That was for me good lesson!