Tutorial :Defined size doesn't corespond to real size on the screen


I've encountered curious problem, and I'm wondering what is wrong.

When I define for example Sprite and I draw inside rectangle 20 x 20 px, then when measured on screen it have something like 33 x 33 px, while swf window which was defined as 400 x 300 corresponds to definition well.

Where is the problem?


Is it possible that your content is being scaled? I'm assuming you're doing a print screen an measuring it with photoshop or some other program.

If so, give this a try:

stage.scaleMode = StageScaleMode.NO_SCALE;  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »