veiwport help required

BlitzMax Forums/BlitzMax Programming/veiwport help required

jkrankie(Posted 2008) [#1]
I've been playing around with viewports for an idea for a new game, and have hit a bit of a problem. the code does exactly what i want it to do, but what would be the best way of stopping the viewport from going past the edges? what i have tried so far hasn't been successful. what would you guys suggest?

also, i know that there is an issue with viewports on some low end machines. this is not an issue in this case.



cheers
Charlie


jkrankie(Posted 2008) [#2]
ok, i've kind of got this working now, but it's a little clunky when you move into the corners. anyone know why?



cheers
Charlie


daaan(Posted 2008) [#3]
Works fine for me :)