2 "randoms" in the expression editor??

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
So in my bubble shooter type game I'm trying to figure out how to not shoot a ball of a color that's been eliminated.

I have this theory and want to know this this will work;

Say "the number 2" = shoot red balls; but all red are gone so I don't want red to be shot.

Can I do this code:
RULE: Red Left = 0, Change Attribute game.ColorToShoot to "Random (1) Random (3,6)"

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    You could do random(2,6)%6+1

    because having 2 random functions like that would not work.
Sign In or Register to comment.