View Single Post
  #1  
Old 08-07-2003, 08:06 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
unsticky focus, equations

When using setfocus, my equations didnt work perfectly at first to keep the screen from sticking off the edge of the levels. ...

My final equations:
viewy=screenheight/32-1.5
viewy=62.5-screenheight/32
viewx=screenwidth/32-1.5
viewx=62.5-screenwidth/32

Why is -1.5 involved with the equations for setfocus in scrolling the sides of the level? I only figured this out by tweaking. Is this a bug? Where does the -1.5 come from? It confuses me ...
Reply With Quote