How to define random?

gawakamygawakamy Member Posts: 109
edited April 2012 in Working with GS (Mac)
Hi, GS dudes.
I am gonna make random rating, and also found out the video instruction. And I have a question. How do I define number of random.
The video said that I have to make the rules one by one. (If random is 8, I have to make 8 rules.)
However, what if number is 100 or 1,000 something?
Do I still have to make 1,000 rules manually? I think there is better way.
Please help me.
Thanks.

Answers

  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    @tshirtbooth - The best definition of random is the date each month that Apple chooses to pay you ;)

    Ace
  • gawakamygawakamy Member Posts: 109
    @tshirtbooth Hi, what I trying to make is a defense game. Whenever I click a button, it will spawn characters randomly. It might be 30 maximum. You means the table function would solve the problem? Thanks anyway :D

    @mynameisace What is that exactly? I can not make sense. Is it Apple's new policy?
  • gawakamygawakamy Member Posts: 109
    @tshirtbooth Another one is rating. I am gonna make random rating. Whenever user click the start button, the rating page (or screen) would show up randomly. I would like to make it once a 20 times. I have done as below.

    1. Added attribute "RandomRating"
    2. Go to start button -> When touch is pressed, Change Attribute -> game.RandomRating To random(1,8)
    3. Added Rule 1~8
    Attribute game.RandomRating =1 -> Start game
    Attribute game.RandomRating =2 -> Start game
    Attribute game.RandomRating =3 -> Start game
    Attribute game.RandomRating =4 -> Start game
    Attribute game.RandomRating =5 -> Start game
    Attribute game.RandomRating =6 -> Start game
    Attribute game.RandomRating =7 -> Start game
    Attribute game.RandomRating =8 -> Go to Rating page

    This is what I have done. But I think this is not efficient. If there are more numbers and rules (eg 100), it will be really hard. This is just a hard work, not a program.
Sign In or Register to comment.