View Single Post
  #1  
Old 12-05-2012, 06:38 AM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
Zoom adjusted by screensize

My goal: Have a constant view area around player no matter the size of the screen.

1st Attempt: I made an Img appear that's height and width was set determined by the screenwidth/screenheight.

Problem: couldn't see chat bar..and the black is ugly

2nd Attemp:
PHP Code:
function onTimeOut() {
 
setTimer(0.05);
 
this.controlWidth 600;
 
this.controlHeight 550;
 
with(GraalControl){
  
x=screenwidth/2;
  
y=screenheight/2;
  
width=thiso.controlWidth;
  
height=thiso.controlHeight;
 } 
Problem: It wouldn't center right, had to restart client before getting on another server to reset the black border, and once again, black is ugly...

Solution IDEASo I had this idea. A function that zooms everything determined on the screen size. Of what I heard There are some commands like camerabounds and camerasize but they are totally undocumented.

Thoughts?
Reply With Quote