This content has been marked as final. Show 2 replies
> I have a game that I made in director and it very big but I want it to be scaled down to the players screen size. Is there any lingo to do that?
You can set the rect of your stage to any size.
For example, to set the stage to resize to fullscreen
(the stage).rect = the desktopRectList
(the stage).drawRect = the desktopRectList
The first line scales the stage to a certain size. The second tells where to place the stage on the monitor.
Say, at the start of a movie we have an 800 x 600 movie :
gStartSize = (the stage).rect
then later when we want to change the stage to 1024 x 768 and keep it centred,
(the stage).drawRect = rect(0, 0, 1024, 768)
(the stage).rect = gStartSize - rect(112, 84, 0, 0) + rect(0, 0, 112, 84)
The width difference between the 2 sizes is 1024-800 = 224
So, I added 112 to the left and right of the orginal stage rect to make sure my new size of 1024x768 was centred. I did the same for teh vertical
The above scales a stage up. You could use the same code to scale it down.
Note - scaling in this way may affect playback and visual quality of your application.
Director Lecturer / Consultant / Director Enthusiast