Hi, im really new to coding and Game Developmenet.
I would like to add a endless world to my 2d game (top down view).
It should be random (like random trees everywhere). I have no idea where to start. I am working with simple png sprites. My Camera is following my Character :
`using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraFollow : MonoBehaviour
{
public Transform followTransform;
// Update is called once per frame
void FixedUpdate()
{
this.transform.position = new Vector3(followTransform.position.x, followTransform.position.y, this.transform.position.z);
}
}
`
I hope someone can help me !
Thank you
↧