sorry
the view is 640,480
the hud fills the entire screen
leaving a box for the view at the hud position of 222,76 with a width and height of 360
I also don't want my camera to let the player leave the centre of it
but have box for the view(not the hud) to stop at the Layout borders
what state do you think I should use?
Edit ya the hud is bouncing around
and its anchored
Edit Again: so right now I'm trying to...
set the scroll to postion to...
X: clamp(player.X-Xoffset,View.BBoxLeft,View.BBoxRight)
Y: clamp(player.Y-Yoffset,View.BBoxTop,View.BBoxBottom)
Xoffset being a global number of 82
Yoffset being a global number of 16
view being a object filling the view gap in my hud
it does good except when I get to the edge of the screen it doesn't clamp the view to the edge of the layout
it seems to be what I'm looking for though
I'm just not very good at math
just type this in at imgur.com
/hOKJgEe
its the pic of my hud