Spawn an object

Discussion in 'How Can I...?' started by mykita, May 11, 2016.

  1. mykita

    mykita Boxer

    Joined:
    May 10, 2016
    Messages:
    12
    Likes Received:
    0
    Hi.

    I know that I can make an object as a "Spawner", but this option spawns objects based on a rate (example 2 seconds etc).
    I want to know if I can make an object spawn as my character moves over it. Possible?

    Kind regards
     
  2. brakewind723

    brakewind723 Serious Boxer

    Joined:
    Oct 3, 2015
    Messages:
    583
    Likes Received:
    506
    Set a wake up distance on the object and make the spawner frequency very long.
     
  3. mykita

    mykita Boxer

    Joined:
    May 10, 2016
    Messages:
    12
    Likes Received:
    0
    Thanks!
    One more question: Is it possible to make the object emit particles as it spawns?
     
  4. brakewind723

    brakewind723 Serious Boxer

    Joined:
    Oct 3, 2015
    Messages:
    583
    Likes Received:
    506
    What version of Buildbox are you using?

    If it's 2 then you can just add a particle emitter in the animation field.
     
  5. mykita

    mykita Boxer

    Joined:
    May 10, 2016
    Messages:
    12
    Likes Received:
    0
    I am still using 1.2.0. Is it possible in this version, or should I upgrade to 2.0?
     
  6. brakewind723

    brakewind723 Serious Boxer

    Joined:
    Oct 3, 2015
    Messages:
    583
    Likes Received:
    506
    You could always make the particle animation in a different program and drag it into Buildbox. Personally, I recommend upgrading to Buildbox 2, overall it's a very polished and stable software and will add much more accessibility to your games.
     
  7. mykita

    mykita Boxer

    Joined:
    May 10, 2016
    Messages:
    12
    Likes Received:
    0
    Okay thanks!
     
  8. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    Another trick for spawning single object is to place that outside of view, then add speed and a wakeup distance. The trick is that you do not need much speed, but you place a Logic in front of it, which is replacing its coordinates and speed etc of your like.
     
  9. Alaa-S-Zarifa

    Alaa-S-Zarifa Boxer

    Joined:
    Jul 22, 2016
    Messages:
    2
    Likes Received:
    0

Share This Page