I used this code according making the view follow an actor tutorial in game editor:
- Code: Select all
int weight = 8;
x = ((weight - 1)*x +Player.x)/weight;
But I want Player can not go back and Behind closed.(Like NES Contra Game) I don't Know how can do it.
Please Guide Me.