Buildbox 3d - How To Loop/repeat Scenes?

Discussion in 'How Can I...?' started by TsunaX, Apr 6, 2019.

  1. TsunaX

    TsunaX Boxer

    Joined:
    Apr 6, 2019
    Messages:
    1
    Likes Received:
    0
    Hi all,

    I am using buildbox 3D.

    Is there a way to loop or repeat the scenes so that it creates an endless loop until the player game overs?

    Also is there any way to have certain scenes appear in the selection based on criterias like the character going certain distances etc?

    Thank you for your help in advance.
     
  2. shahar.m192

    shahar.m192 Avid Boxer

    Joined:
    Oct 7, 2018
    Messages:
    204
    Likes Received:
    44
    if i remember you have an edit button on top left you have align scences or randomize scenes.
     
  3. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    For endless randomize game, Edit > Randomize Scenes

    You can add specific scene, use this code:
    this.scene().addLevel('finish'); //finish is scene name.

    i used for this code on Pod Race 3D,
    player play 10 random scene then i added finish scene.
     
    Peter2 likes this.
  4. Soulxoi

    Soulxoi Boxer

    Joined:
    Oct 6, 2019
    Messages:
    2
    Likes Received:
    0

    Can you please go in more detail. thank you
     
  5. Hanomax

    Hanomax Avid Boxer

    Joined:
    Aug 24, 2018
    Messages:
    157
    Likes Received:
    85
  6. Selvamax

    Selvamax Boxer

    Joined:
    Dec 30, 2019
    Messages:
    10
    Likes Received:
    1
    For guys who couldn't make addScene() working. You have to follow this rule.
    *** You need to add final scene in the end, its damn compulsory else it won't work ***
    For example
    this.scene().addLevel('Scene1');
    this.scene().addLevel('Scene2');
    this.scene().addLevel('Finish');

    Example 2
    this.scene().addLevel('Scene3');
    this.scene().addLevel('Scene4');
    this.scene().addLevel('Finish');
     

Share This Page