-
Scrolling madness
In most of the old zelda games, especially the new oracle ones, it uses a scrolling technique where if the player reaches the edge of the screen, it shows a new area, rather than scrolling as the player moves.
Has anyone got any idea how i could do this or an example with this scrolling style inplemented in it?
sorry if i was unclear in my decription, i am tired ;)
-
When their player is even 1 pixel offscreen (use IntersectRect API with the character's RECT and the screen RECT) you would change the ViewX and ViewY respectively.
-
i've never used either of those api's :/
-
Consider the edges of your screen as 4 threshold for your character to step trough, depending on which you will enter approperiate area or scroll the screen to it. You can do it by simply comparing the characters position with each edge. For instance the left threshold trigger would be character.x<0
-
Hum your game is in BitBlt, right? Are you storing the player's coordinates as PlayerX/Y (or something similar) and the screen's coordinates as ScreenX/Y?...