Random Scenes Then Final Scene

Discussion in 'How Can I...?' started by AndyG, Oct 21, 2016.

Tags:
  1. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    How Can I...
    Randomize a bunch of scenes then finish with one specific scene to complete the game?

    Obviously its easy enough to Randomize but how can I tell the game that after say 10 plays of the various random scenes I want, say, on play 11 to finish with a specific scene to end the game?
     
  2. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    anyone?
     
  3. jerry

    jerry Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    421
    Likes Received:
    232
    Can you do this with an Event Observer - Last Scene? Then it could move to another "final" world scene.
     
  4. russellartista

    russellartista Boxer

    Joined:
    Nov 2, 2015
    Messages:
    32
    Likes Received:
    15
    Hey Andy,
    One option:
    First create a separate new scene different from your main one.
    Try placing a "Menu Jump" at the end of random scenes in your main one.
    Link the two scenes
    Then place a "event observer" in your new scene (I did mine for session coins) (the new scene also needs it own menu UI, I copied the same one I used for the main scene)

    This is a theory that might work. It worked for me for a similar objective.
    Cheers,
    Russell
     
  5. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    How do you define the "end of random scenes"?

    Doing it like that or just within the same world, in the end it is the same. You have to repeat 10 columns of the same scenes which you want random and then place the 11th scene after them (or the new world). There is unfortunately no option in Buildbox to repeat the scenes randomly from - lets say - distance 100-1000. So you have to repeat all those scenes manually which takes extra space and memory in your game. Once you finish the game you can convert to global clones which helps to reduce the amount of objects again as if you would have only one column. The bad side of that is that you have to do it every time you update your game.
     
  6. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    OK to the various peeps thanks for your assistance.
    With Sean's help also I got there although the Play Cooldown wont work in this example.
    It seems straightforward enough but the key is in making sure you have the values set correctly and manually enter the figures and not rely on the menu option to set things up.

    The End Scene Start Distance = the Scene Distance X the number of iterations you wish to repeat + The Start Scene Distance.

    In this example the random 5 scenes have the Scene Distance of 8200.
    So thats 8200 X 3 (for 3 randomization plays) + 500 = 25100

    Therefore the End Scene 6 starts at 25100
    But importantly for the other 5 scenes you must specify that the End Distance is also 25100.

    Doing so then gives you 3 random scenes then jumps to the End Scene 6.

    randomend.png
     
    Last edited: Oct 26, 2016
  7. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Wow. I didn't know that. This is amazing. I repeated the scenes 1-5 three times to have the same result. But obviously with much more resources needed.

    Thanks for sharing this secret. I definitely will make use of it.
     
    playsgames6666 and AndyG like this.
  8. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Cool, thanks for the info.
     
    AndyG likes this.
  9. russellartista

    russellartista Boxer

    Joined:
    Nov 2, 2015
    Messages:
    32
    Likes Received:
    15
    Thanks for sharing!
     
    AndyG likes this.

Share This Page