Hey guys, i'm super stuck with a little racing game i'm currently working on. It's the view that is stumping me atm, i've looked at numerous tutorials but nothing seems to fit.
Basically, it's a top down racing game, but it has a fixed viewpoint. So instead of turning your car, you turn the entire world (like in 3D). I need the car to be at a fixed position on the window (the window is 320x600, the car is at 160,480) and have the world rotate around that position. But the camera needs to be above this point, not centered on the car.
I can't manage to apply velocity without the car going off of the screen, and if i lock the car into position on the screen it doesn't stick to it's position in the world.
That description is probably pretty hard to understand, so here's a screenshot to show you what i mean. Please ignore the horrible placeholder background haha.
The thing is, i know the answer is probably something ridiculously simple. But i'm overthinking it.
Any help you can offer is appreciated!