Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to handle views ?  (Read 1099 times)

0 Members and 1 Guest are viewing this topic.

Urefeu

  • Newbie
  • *
  • Posts: 4
    • View Profile
How to handle views ?
« on: July 17, 2015, 03:31:09 pm »
Hello !

I'm wondering how to handle views so that I can always have the character at the center of the screen except when it approaches the border of the map.

My map is a tile-based vertexarray which is largest than the screen.

I wonder if I need to use one view for both the background and the character and center the view on the character (wouldn't it be jerky ?) or against the border of the map, OR two views, one for the background and one for the character (it would be positioned relatively to the screen) but it'd be complicated to calculate as I wouldn't have the absolute coordinates.

What's the right way to do it ?

Thanks !

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: How to handle views ?
« Reply #1 on: July 17, 2015, 04:07:59 pm »
If your character and background use the same coordinates, then you have no reason to use 2 different views.