I am creating a map "plugin". Each room on the map has a copy of itself (a separate png file (plugin)) that overlays on top of the room, thereby allowing me to change the alpha and make a room "clickable". Easy enough to do, except when I have the map set to adjust its size according to screen size.... example:
<!-- map height is 80% the height of the stage and width is proportional -->
<plugin name="map" height="80%" width="prop" />
The problem is that when I want to set the x and y coordinates of the rooms to the parent map, the position of the room in accordance with the map changes (x,y) when the scale of the map increases or decreases, such as from windowed to fullscreen.
I was trying to get (determine) the size of the map plugin each time it was scaled, but couldn't figure it out. I tried...
and thought this should be correct, but I couldn't trace a value for it.
Sorry, this is a double post as I was having trouble relocating my original in the forum.