Help - Increase randomness with the score

How can I increase randomness when the score is high? Can you help me, please?

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    What are you trying to randomise and how high is high?
  • Tiny_StudioTiny_Studio Member Posts: 50
    I randomise the spawning of an actor and high would mean a score of 150
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited August 2013
    How about random(1, game.Score / 150)

    If your score is 300 it'll be random(1, 2)
    If it's 600 it'll be random(1, 4)
    etc.

    Obviously replace game.Score with the correct Attribute. Change 150 in the random expression to find a suitable randomness.

    EDIT: You will probably also want to floor or ceil the game.Score / 150 sum to remove decimal points.
  • Tiny_StudioTiny_Studio Member Posts: 50
    Thank you :)
Sign In or Register to comment.