Slikkepott på COOP-Extra
Slikkepott på COOP-Extra
CC#
Created by Slikkepott på COOP-Extra on 3/24/2023 in #help
❔ How to make character jmup
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerMovement : MonoBehaviour
{
[SerializeField] private float _speed = 1f;

void Start()
{

}

void Update()
{
var direction = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
transform.Translate(direction * _speed * Time.deltaTime);

}

}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerMovement : MonoBehaviour
{
[SerializeField] private float _speed = 1f;

void Start()
{

}

void Update()
{
var direction = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
transform.Translate(direction * _speed * Time.deltaTime);

}

}
how to make character jump?
6 replies
CC#
Created by Slikkepott på COOP-Extra on 9/18/2022 in #help
easy movement
how do I just make easy movement in my 2D game...
5 replies