Attribute range

GamepencilerGamepenciler Artist/Game DeveloperMember, PRO Posts: 326
Hello, I want to ask how will I represent a range.. I want it like:
Set Attribute game.score = to range 10-15 ?

what do i use to perform range?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    random(10,15)

    random is in the expression editor
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    yea, random(10,15) will give you a random number between 10-15, is that what you're trying to acomplish?
  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    oh i see thanks.. @jonmulcahy, @jamie_c I'm trying to accomplish something like:

    selector 1-5 = gamecenter achieved A
    selector 6-10 = gamecenter achieved B

    The thing is sometimes when I press my button that have multiplication value of 2 it jumps selection like if I set selector to only one value say : selector= 5. But I wonder if I do that way won't the achievement be triggered twice?

Sign In or Register to comment.