#1 – Hotline Miami Clone in Unity – Basic Movement

I’m on patreon –

Buy Loud or Quiet on Steam –

Play Loud or Quiet Here:

Get the project files here:

Create a clone of Hotline Miami in Unity 2D!

Learn how to:
-Move the player
-Rotate the player to the cursor
-Get the camera to follow the player

source

Recent Articles

facial machines

Related Stories

facial machines for sale

26 Comments

  1. wot a legend

    I'm at the end of my tether trying to figure out how to make the camera work the way I want in my game and this is exactly what I need, so thank you so much for making this open source

  2. Guy, i put you script and say "ERRO"
    using System.Collections;
    using UnityEngine;

    public class PlayerMovement : MonoBehaviour {
    public bool moving = false;
    float speed = 5.0;
    // Use this for initialization
    void Start () {

    }

    // Update is called once per frame
    void Update () {
    movement ();
    }

    void movement()
    {
    if(Input.GetKey(KeyCode.W))
    {
    transform.Translate (Vector3.Up * speed * Time.deltaTime,Space.World);
    moving=true
    }

    if(Input.GetKey(KeyCode.S))
    {
    transform.Translate (Vector3.down * speed * Time.deltaTime,Space.World);
    moving = true;
    }

    if (Input.GetKey(KeyCode.A)) {
    transform.Translate (Vector3.right * speed * Time.deltaTime,Space.World);
    moving = true
    }

    if (Input.GetKey(KeyCode.D)) {
    transform.Translate (Vector3.left * speed * Time.deltaTime,Space.World);
    moving = true;
    }

    if (Input.GetKey.D != true && Input.GetKey (KeyCode.A) != true && Input.GetKey (KeyCode.S) != true && Input.GetKey (KeyCode.W) != true) {
    moving = false;
    }
    }
    }

    please help ;-;

  3. Hi, I have a question. When I set the player with tag "Player", WASD controls won't work. Only when I set it to "untagged", it works, but the camera of course not following. The codes are all same to yours, do you know what's the problem?

Leave A Reply

Please enter your comment!
Please enter your name here

publish press release online, get blue check mark
best cavitation machine

Stay on op - Ge the daily news in your inbox