How to load a random scene?

  • Hi guys!

    GIve me a hand to make my tour load a random scene. All the scenes are include in the same XML
    THe fist scene is being loaded in this part of code:

    Code
    loadscene(get(scene[0].name), null, MERGE);


    The xml has about 50 scenes. Can anybody tell me how can i do this?

    Thanks a lot

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!