List Info

Thread: Problems Resizing A Projector and centering the stage




Problems Resizing A Projector and centering the stage
user name
2005-12-29 05:12:41
Hello to everyone - I'm really bored after being here for
hours trying to make
  this work with no solution coming! I'm trying to maximize
a projector to cover the
  full screen of the user, for that I'm using: 
  
  (the stage).rect = the desktopRectList[1]
  
  I don't want the complete game to be resized to fill the
stage rect, what I want
  is the game to be centered now on the stage. Because after
changing the stage.rect
  my game appears on a corner. So I'm executing this code to
try to accomplish it:
  
    k1 = (the stage).rect.width
    p1 = the stage.drawrect.width
    marginH = (k1-p1)*0.5
    
    k2 = (the stage).rect.height
    p2 = the stage.drawrect.height
    marginV = (k2-p2)*0.5
    
    x = (the stage).rect[1]
    y = (the stage).rect[2]
    
    (the stage).drawRect =  + rect(marginH+x, marginV+y,
(k1-marginH)+x, (k2-marginV)+y)
  
  I thought that would work (maybe I'm not really
understanding something  here), but it's not. I'm using 4
different movies, the problem seems to  appears when I
  got from one movie to another. Then my recently loaded
movie appears somewhat out of screen.
  
  I hope that some of you can help me or maybe share some
code for making what I need possible.
  
  Thank you, bye!
  Minyer
  
  
  

		
---------------------------------
Yahoo! for Good - Make a difference this year. 
_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )