Using Spawner For Individual Objects

Discussion in 'How Can I...?' started by Dean Wilson, May 5, 2020.

  1. Dean Wilson

    Dean Wilson Boxer

    Joined:
    May 5, 2020
    Messages:
    7
    Likes Received:
    1
    Hi, I have only just started using BuildBox but im loving the feel of the program.

    Im hoping someone can help me with a few questions.
    I have an idea in my head but not sure its possible to make in Buildbox.

    1. Spawn circles that start at the bottom of the screen and float to the top of the screen.
    2. If touched the object selects a random number 1-100 and add thats to the score and runs explode animation. Also object is remove from the screen. Allowing more to spawn below.
    3. Once a desired score is reached (per level) then the level ends.

    What im finding is the way I have it setup (im sure its the wrong way), is when the object is pressed it removes all items and does not re-spawn anything. So i assume once pressed all spawn objects are acting as 1 big object.

    Any help would be awesome.
    -Deano
     

    Attached Files:

  2. Dean Wilson

    Dean Wilson Boxer

    Joined:
    May 5, 2020
    Messages:
    7
    Likes Received:
    1
    Never mind, I got it to work now.
     
  3. Dean Wilson

    Dean Wilson Boxer

    Joined:
    May 5, 2020
    Messages:
    7
    Likes Received:
    1
    Ok, posting this here so if anyone in the future needs to use this, please let me know.

    When touched on the screen it pops the bubble and adds a random score to the points system rather then the amount entered into the box "amount" field.
    I used this code
    Code:
    amount = Math.random() * 1000;
    Screenshot of object
     

    Attached Files:

Share This Page