pls help i need help asap
# can anyone help me write a code?
so basically im making a 2d topdown game and i need a movement code can anyone help mine isnt working i used this video https://youtu.be/ongCws4gs5A?si=yXxHz6mZxkcSoWXI and this is the code
using UnityEngine;
public class TopDownPlayerMovement : MonoBehaviour
{
public float moveSpeed = 5f;
private Vector2 moveInput;
private Vector2 movement;
void Update()
{
moveInput.x = Input.GetAxisRaw("Horizontal");
moveInput.y = Input.GetAxisRaw("Vertical");
if (moveInput.magnitude > 1)
{
moveInput.Normalize();
}
movement = moveInput moveSpeed;
transform.Translate(movement Time.deltaTime, Space.World);
}
}
https://redd.it/1hcgyw9
@r_Unity3D
# can anyone help me write a code?
so basically im making a 2d topdown game and i need a movement code can anyone help mine isnt working i used this video https://youtu.be/ongCws4gs5A?si=yXxHz6mZxkcSoWXI and this is the code
using UnityEngine;
public class TopDownPlayerMovement : MonoBehaviour
{
public float moveSpeed = 5f;
private Vector2 moveInput;
private Vector2 movement;
void Update()
{
moveInput.x = Input.GetAxisRaw("Horizontal");
moveInput.y = Input.GetAxisRaw("Vertical");
if (moveInput.magnitude > 1)
{
moveInput.Normalize();
}
movement = moveInput moveSpeed;
transform.Translate(movement Time.deltaTime, Space.World);
}
}
https://redd.it/1hcgyw9
@r_Unity3D
YouTube
4. How to make a 2D RPG in Unity - Character Movement - Code
In this video, we will use the logic from the previous video to code the character movement. We will be creating the movement component, getting input from the keyboard, and using physics to move our character in the world.
Support me on Patreon: https:…
Support me on Patreon: https:…
This media is not supported in your browser
VIEW IN TELEGRAM
Universal Gravitation with 50k objects in Unity. Optimized with GPU compute shader's calculations + indirect GPU instancing
https://redd.it/1hch5rt
@r_Unity3D
https://redd.it/1hch5rt
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
I released my first Asset about Insect Simulations (Free codes on Desc)
https://redd.it/1hcjgbu
@r_Unity3D
https://redd.it/1hcjgbu
@r_Unity3D
ENSCROLL: Craft Magical Scrolls in my first Steam indie game - Free Release on December 17th!
https://redd.it/1hckd5g
@r_Unity3D
https://redd.it/1hckd5g
@r_Unity3D
Reddit
From the Unity2D community on Reddit: ENSCROLL: Craft Magical Scrolls in my first Steam indie game - Free Release on December 17th!
Explore this post and more from the Unity2D community
This media is not supported in your browser
VIEW IN TELEGRAM
New blink / talk animation and voice. Before or after voice? Sound on
https://redd.it/1hckfto
@r_Unity3D
https://redd.it/1hckfto
@r_Unity3D
Defender's Dynasty, From a Simple Tutorial to a Full-Fledged Game. First Game, a Journey Through Iterations, Refinements and Creativity!
https://redd.it/1hcn45o
@r_Unity3D
https://redd.it/1hcn45o
@r_Unity3D
A procedural solar system, somewhere... made with Unity HDRP and lots of noise!
https://redd.it/1hcjxna
@r_Unity3D
https://redd.it/1hcjxna
@r_Unity3D
Reddit
From the Unity3D community on Reddit: A procedural solar system, somewhere... made with Unity HDRP and lots of noise!
Explore this post and more from the Unity3D community
Media is too big
VIEW IN TELEGRAM
After 12 years of working solo on Zefyr, I'm getting close to release! If you like old school adventure games from the gamecube/ps2 era (Zelda Windwaker, BGE, Sly Cooper, ...) you might want to check out the demo on the Steam page! I used unity as a game engine, I think I started with 3.5!
https://redd.it/1hclvj0
@r_Unity3D
https://redd.it/1hclvj0
@r_Unity3D
2d and 3d at the same time ?
Hello I'm new to making games
I'm inspired by inscryption and I got a idea for a game that changes from 2d to 3d but if the player moved in 3d or 2d their location would also change in both or if something happened in 2d , it also changes in 3d
So is it possible in unity ?
https://redd.it/1hcv2ph
@r_Unity3D
Hello I'm new to making games
I'm inspired by inscryption and I got a idea for a game that changes from 2d to 3d but if the player moved in 3d or 2d their location would also change in both or if something happened in 2d , it also changes in 3d
So is it possible in unity ?
https://redd.it/1hcv2ph
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community