box collider

hi guys…

sorry for my english

how to make a script for when my character move from one place up a box collider? I am making a 2d game in mario style, I’m still new to PROGRAMMING haha … so I wanted to do for my character not to bring back … like in mario … he can not bring back because it is blocked I do not know … using the box collider to do that … if someone can help me … thank you …

I think what he is asking for is a way to prevent a character from going backwards.

Each time the character passes center point of the screen, simply reposition the box behind him?

Not entirely sure.