r/Unity3D – Telegram
r/Unity3D
264 subscribers
12.6K photos
15.6K videos
14 files
48K links
News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).
Download Telegram
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
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
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
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
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
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
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