Behind closed
Posted: Thu Sep 12, 2013 2:22 pm
Hi.
I used this code according making the view follow an actor tutorial in game editor:
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.
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.