So i am developing a game and i need a Sprite to spawn above the screen. This is my first time working with sprites in unity and i am not sure how you would do it.
Also i am having trouble detecting when sprites hit a collision box.
Thanks
So i am developing a game and i need a Sprite to spawn above the screen. This is my first time working with sprites in unity and i am not sure how you would do it.
Also i am having trouble detecting when sprites hit a collision box.
Thanks
Unity - Scripting API: MonoBehaviour.OnCollisionEnter2D(Collision2D)
Unity - Scripting API: Object.Instantiate
Unity - Scripting API: Object.Destroy
Thanks
I would definitely check out posts here/other tutorials about how to effectively use prefabs in particular. They can be tricky! But they are mighty fun once you get a hang of them
Good luck.