How to get the camera moving only in one direction?
QuinnZoneStudios
Member Posts: 452
Hey all,
Like the title says, I'm trying to figure out how to have my camera move forward but not back. It's following an X and Y offset on my main character (landscape right). I'm fine with the character moving left across the screen but would like to prevent the camera from moving left at any time.
I suppose I could put in some collision rule that follows the offset? Just not quite sure what logic I need to apply though. It's probably fairly simple - as they most often turn out to be.
Anyway, thanks for reading!
Like the title says, I'm trying to figure out how to have my camera move forward but not back. It's following an X and Y offset on my main character (landscape right). I'm fine with the character moving left across the screen but would like to prevent the camera from moving left at any time.
I suppose I could put in some collision rule that follows the offset? Just not quite sure what logic I need to apply though. It's probably fairly simple - as they most often turn out to be.
Anyway, thanks for reading!
Comments