Making A Simple Game Part 1 - Simple Movement Script
Hello there,
Today we are going to use unity to make a very simple game, starting with the Movement Script
The script is included below
sing System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMove : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKey (KeyCode.D))
{ transform.position += Vector3.right * 5 * Time.deltaTime; }
if (Input.GetKey(KeyCode.A))
{ transform.position += Vector3.left * 5 * Time.deltaTime; }
if (Input.GetKey(KeyCode.W))
{ transform.position += Vector3.up * 5 * Time.deltaTime; }
if (Input.GetKey(KeyCode.S))
{ transform.position += Vector3.down * 5 * Time.deltaTime; }
Other Videos By RunningRobert
2021-04-29 | Protalix Biotherapeutics PLX Post CRL Summary 29Apr2021 |
2021-04-26 | The Longest Road on Earth Demo |
2021-04-23 | Ardelyx ARDX Pre PDUFA Summary 23Apr2021 |
2021-04-20 | Utopia |
2021-04-18 | Game Dev Enemies |
2021-04-16 | Fortress Biotech FBIO and Avenue Therapeutics ATXI NDA Delay Summary 16Apr2021 |
2021-04-14 | The Final Station The Only Traitor DLC |
2021-04-11 | Game Dev: How to shoot |
2021-04-09 | Trevena TRVN Summary 09Apr2021 |
2021-04-06 | Friendly Fire (Free Steam Game, Ludum Dare Game) |
2021-04-04 | Making A Simple Game Part 1 - Simple Movement Script |
2021-04-01 | Protalix Biotherapeutics PLX Quarterly Report and Pre PDUFA Summary 01Apr2021 |
2021-03-30 | Mini Countries |
2021-03-28 | Dorfromantik |
2021-03-26 | Catalyst Pharmaceutical CPRX Summary for 26Mar2021 |
2021-03-23 | Tadpoles Tales (Free Steam Game, Award Winning) |
2021-03-21 | Sizeable Game |
2021-03-14 | Curse of the Dead Gods |
2021-03-09 | Grimm's Hollow (Free Steam RPG) |
2021-03-07 | Amarin Corp AMRN Summary 07Mar2021 |
2021-03-05 | Botanicula |