NerdDayGames | Let's get together and learn.

Unity 5.4 Four Direction Movement

Unity 5.4 Four Direction Movement

Simple Unity3d script to move up, down, right, and left (along x and z axes). I tested this script in a new project.


Notable links: transform.Translate and Input.GetAxis


using UnityEngine;
using System.Collections;

public class PlayerFourWayMovement : MonoBehaviour {

    private float vSpeed, hSpeed;

    // Use this for initialization
    void Start () {

    // Update is called once per frame
    void Update () {
        hSpeed = Input.GetAxis (Horizontal);
        vSpeed = Input.GetAxis (Vertical);

        if (vSpeed != 0) {
            hSpeed = 0;

        transform.Translate (hSpeed, 0, vSpeed);





Tagged with: , , , , , , , , , ,
Posted in Unity

Libgdx Html Export From Intellij Or Android Studio


if getting “command not found” when running  gradlew html:dist from terminal in ItellliJ or Android Studio, you’re on the right track. Try  “./gradlew html:dist”

Posted in Android, Libgdx

LibgdxJam Life In Space Progress Update

Wow time is flying by. I’ve been learning alot, definitely the biggest and most detailed game I have made so far. Have most of the basics done. Need to fix the booster tower, add more enemy types, add a boss, and create spawn waves for the levels. image

Posted in Uncategorized