I want to execute a script that will randomly display a prefab or object that will display randomly on the x and y axis ( this is a 2d platformer), but transforming at the same time. I currently have the object just transforming straight on the y axis using this transform.Translate(Vector3(0,0,speed) * Time.deltaTime);
i want this object to appear randomly in different positions. Sometimes high, sometimes low–but randomly and transforming using the above code.
i guess a more concise way for me to ask is how to I make this box move randomly up and downs similar to a vertical slider, but horizontal and going one direction