Turns out, I was using the wrong formula. Look at my sample, fully modifiable project that explains this effect. I used far more comments than I normally do to help explain what various parts of the code does. Oddly enough, the scene flag isn't working - invalid parameter. Looks like I ran into an issue I encountered earlier (but this time, I have a sky block).

Download it here (ZIP file - 418 KB)

Edit: changed the subject to indicate I have the sample

Last edited by ulillillia; 07/19/06 01:25.

"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials