Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+2)
Is there a way to rotate the camera in relation to the mouse position?

I'd like to know too!

(+2)

This might be worded wrongly, but if you hide the mouse and use the Mouse Pointer Lock extension, you can rotate the camera on the X and Y using MouseMovementX() and MouseMovementY() (or something like that.)
If you want it so he doesnt just walk straight into where you are looking (aka if you want a minecraft like game) you would make a cube, and set the cameras position to that cube at every frame, then position the cube for moving and rotate the camera for the head looking around. Sorry. That's a lot. Hopefully that helped!

Deleted 1 year ago
(1 edit)

So if I just want to make a doom clone (only look left and right, not up and down), what do I do then? I have the extension. 

EDIT: Nevermind, it's in the "Sprite Projection" example! Cool!