Search Unity

"Popping balloons"

Discussion in '2D' started by toolip, Jun 8, 2018.

  1. toolip


    Jun 8, 2018

    I'm trying to get my scene/game to have multiple balloons appear/spawn on the screen, and when the player clicks on them they disappear and the spawning of the balloons gets quicker. Right now, I can't even get them to appear/fade in on the screen, nor can I get them to disappear when clicked on.

    Can someone please point me in the right direction? Or maybe even help me themselves?

    Thanks in advance!
  2. bakir-omarov


    Aug 1, 2015

    Firstly it looks like you are in the beginning of your Unity3D journey, so i highly recommend you to start with tutorials, articles and books. You can find all necessary information in the official Unity Learn section :

    For the logic of your game.

    1) Firstly you need to create random balloons. In Unity you can create GameObjects with Instantiate method. You can find a bunch of video tutorials about it on youtube. For example:

    Unity Docs:

    2) After you need to detect mouse clicks on objects, so you can destroy them, and make some "popping" effects, and add some points to UI text. You can use Raycast in Unity. For example:

    Unity Docs:

    As i said before, highly recommend you to learn basics of Unity before starting making your own games. Have a nice Unity3D journey! ;)
    toolip likes this.