Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mrcalcium99 on Fri 19/06/2015 20:08:09

Title: [SOLVED]I want to lock the camera in place.
Post by: mrcalcium99 on Fri 19/06/2015 20:08:09
I am trying to make a top down adventure game and want the camera to stay in a certain position or move along a specific path. I have searched around and so far have not found anything that can help me. Does anyone know what I can do to keep the camera in place?
Title: Re: I want to lock the camera in place.
Post by: Snarky on Fri 19/06/2015 21:15:24
Room.SetViewport(x,y);

;)
Title: Re: I want to lock the camera in place.
Post by: mrcalcium99 on Fri 19/06/2015 23:32:00
Thanks. I felt like an idiot for having to ask.
Title: Re: I want to lock the camera in place.
Post by: MyEakinBack on Sat 20/06/2015 00:20:27
Quote from: mrcalcium99 on Fri 19/06/2015 23:32:00
Thanks. I felt like an idiot for having to ask.
Don't. I just completed an entire game doing this by switching the player, turning him invisible and making him walk. We all learn new things all the time.
Title: Re: [SOLVED]I want to lock the camera in place.
Post by: Monsieur OUXX on Mon 22/06/2015 16:04:37
Also don't forget to use ReleaseViewport (or something, I'm not sure from the top of my head) to unlock it afterwards when you're done.