Page 1 of 1
Scripted weapons scope?
Posted: Thu Jul 30, 2009 1:51 am
by darksmaster923
I need to create a scripted weapons scope, but all the commands only have the texture fill up part of the screen. Is there any way to make the textures stretch?
Re: Scripted weapons scope?
Posted: Mon Aug 03, 2009 11:45 am
by Juutis
In my game I made separate images for the different resolutions. Then just draw the correct one with DrawFlipBookImage and fill the rest of the screen with black with FillScreenArea.
Re: Scripted weapons scope?
Posted: Mon Aug 03, 2009 10:11 pm
by darksmaster923
How do you find the screen resolution with a script command? I mean, I just did it by making the picture a HUD picture and setting it on the center of the screen, but its really big in low resolutions.
Re: Scripted weapons scope?
Posted: Mon Aug 03, 2009 10:13 pm
by Juutis
GetScreenWidth()
GetScreenHeight()
Re: Scripted weapons scope?
Posted: Mon Aug 03, 2009 10:29 pm
by darksmaster923
Thanks Juutis, you always manage to find the perfect commands that I need but never find, which makes me waste a whole day