Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Stranga on Mon 10/10/2016 13:29:34

Title: [Solved] Stop the view from moving with Player
Post by: Stranga on Mon 10/10/2016 13:29:34
Hello everyone I have another noob question.

Is there a way to stop the view from moving with the player? I want to control the views via code and none of my rooms really need scrolling views but they do anyway because of the size.

also by view I mean like a camera view (if that makes sense)

Thank you an advance
Title: Re: Stop the view from moving with Player
Post by: CaesarCub on Mon 10/10/2016 13:50:01
You can use SetViewport(x, y); to lock the screen and then ReleaseViewport(); to make the screen scroll back to the player character.
Title: Re: Stop the view from moving with Player
Post by: Stranga on Mon 10/10/2016 13:53:31
Worked like a charm! :grin: Thank you very much!