- Home /
Spawning objects from top of screen, Javascript
Hello,
I'm currently working on a 2D (yes 2D) game in Unity and what I'm needing the game to do is spawn objects from the top of the playing field and then fall into an object at the bottom of the field and disappear. I know how to make objects disappear using collisions but what I'm lost on is how to spawn random objects from the top of the playing field and fall down.
Example: I want an apple to fall from the top of the playing field and into a basket at the bottom of the playing field and disappear.
I'm working with Javascript and I'm just very lost. Help is absolutely greatly appreciated!
Your answer
![](https://koobas.hobune.stream/wayback/20220613081411im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Game Object disappears from inspector when I press play 1 Answer
2D Animation does not start 1 Answer
how to only allow a script to run once every X amount of given time unity 1 Answer
2D Space Shooter Instantiating bullet question 1 Answer
When i make my character animated, he can only move up, down left and right (2D) (JS) 0 Answers