How to add random objects in the scene?

  • loppesdan
    Likes 0

    Problem Description

    Hi! 

    Recently, I started studying cocos2d-js. I’m creating an copy of “Google Chrome’s Offiline Dinosaur Game”.

    What better way to add randomly objects to scene? I don’t find how to do it (with cocos2d-js) in yours tutorials.

    (I’m sorry for my bad english)

    Thanks!!

     


  • Sonar Systems admin
    Likes 1

    This should be a good starting point http://www.w3schools.com/jsref/jsref_random.asp


    This reply has been verified.

Login to reply