R
Robert
Guest
Hello, I am having a hard time figuring out how to do this, and I feel stupid because I think its probably a super easy thing and I just can't wrap my head around it. Let's say I have a view around the size of a portrait phone and I want the view to be centered around the player but also slightly vertically offset, see the image below for an example of what I mean. Now, I want the player to always be facing up so when the player turns the view needs to turn with them.
If the player was perfectly centered it wouldn't be a problem, but the only way to rotate the view is with view_angle and it's origin is fixed at the center, so what is the formula/function I would use to calculate the view angle and the correct x and y? I thought the lengthdir functions would be what I need but I couldn't get them to work either. Any ideas?
If the player was perfectly centered it wouldn't be a problem, but the only way to rotate the view is with view_angle and it's origin is fixed at the center, so what is the formula/function I would use to calculate the view angle and the correct x and y? I thought the lengthdir functions would be what I need but I couldn't get them to work either. Any ideas?