Limit movement of actor between x value
Boorje75
Member Posts: 13
I want my actor to be able to move between the x values 0 and 320, so that it can't move out of the screen. How would i do this? appreciate the help!
Comments
Use Constrain and set self.Position.X to max(min(self.Position.X,320),0)
Universal Binary Template - Universal Binary Template Instructions Rev 4 (Short) - Custom Score Display Template
Thank you