GameMaker: Studio

GameMaker: Studio

View Stats:
Robin Nov 30, 2016 @ 4:17pm
Camera View Won't Center, Please Help!
So, I Am Working On A Project Where I Want A Dynamic Camera That Follows My Main Hero's Sprite, But For Whatever Reason, Instead Of Being In The Dead Center Of The Screen, The Sprite Is In The Bottom Right. I Have Centered The Sprite, So It Has Nothing To Do With Origins I Don't Think, But I Really Want A More Dynamic Camera Instead Of Something Static.
< >
Showing 1-2 of 2 comments
Diveyoc Nov 30, 2016 @ 5:42pm 
Did you set anything in your room view?
Open your room and make sure the box is checked for enable use of views, and select your player as the object to follow.
Also set the hport and vport to screen as half of the xview and yview. If this doesn't give you the view that you want then you can adjust the numbers, but this is a good starting point.

So if your room is 800x400, set the port view to 400x200

I haven't messed with views for a while, so I'm going by memory, but it's quite simple.
Robin Dec 1, 2016 @ 2:15pm 
Ive actually found the solution, I just had to change the hbor/vbor to match the view in room, simple mistake since im a bit new with game maker
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Nov 30, 2016 @ 4:17pm
Posts: 2