Bb3 - How To Create A Level Based Game But With Randomised Levels

Discussion in 'Buildbox 3.0' started by kash_kma, Jan 3, 2019.

  1. kash_kma

    kash_kma Boxer

    Joined:
    Sep 25, 2015
    Messages:
    4
    Likes Received:
    0
    Hi I was wondering if anyone could help me with the following in BB3.

    I want to create a level based game where the levels are randomised and the player cannot see the next level and only enters that level once they have gone through a finish line and then the actor is pushed forward to the end of the scene.

    However the problem with this is that when I previewed the game I could see all the other scenes I had setup in the game. So I thought I could instead do a menu jump via event observer but the problem with this is that I wouldn't be able to setup randomising scenes.

    Can someone please help?
     
  2. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    you can make this code:
    let lvid = Math.random() *10+1; //random number 1 to 10
    this.scene().addLevel(String(lvid)); // 1-10 your scene names
     
  3. rjp996tt

    rjp996tt Boxer

    Joined:
    Oct 7, 2015
    Messages:
    48
    Likes Received:
    11
    Not sure if this will help...but I "Think" it helped me...Try setting your "Adding Threshold" to a lower number...I changed mine to 250 and it kept the other scenes from being shown...not sure if this is the right fix or not...but worth a try...

    Russell
     

    Attached Files:

  4. kash_kma

    kash_kma Boxer

    Joined:
    Sep 25, 2015
    Messages:
    4
    Likes Received:
    0
    thanks for replying setting adding thereshold wroked :)
     
  5. dannegomez

    dannegomez Boxer

    Joined:
    Jan 8, 2019
    Messages:
    1
    Likes Received:
    0
    kash_kma: how did you get the menu jump to load next scene? Im trying to figure that out!
    Im doing a puzzel game and have a "level complete" UI when the puzzel is done but no matter how i try to jump to next scene section for the next puzzle i still end up on the start scene... :(
     
  6. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    are you asking for BB2?
    in BB2 u can use lock button for next scene.
     

    Attached Files:

Share This Page