frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Hotline Miami Camera

edited June 17 in How To
I've been seeing a few posts about Hotline Miami games and the biggest question is how to put the camera between the player and the mouse.
This type of camera will move around to help see what's directly in front of you.
Moving the camera out will let you see farther and moving closer to the player will make you see less.

The challenge was to get the center of the distance between the player's game world X and Y and the Mouse's Screen X and Y for the Camera.
I've tried this myself and after an hour of trial and error, I got it.

Hotline Miami Camera test:
http://flowlab.io/game/view/1200671

Comments

Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch