Make a value go between 1-7
Fajlajp
Member Posts: 666
Hi everybody
I´ve got a problem in my current game I´m making http://forums.gamesalad.com/discussion/59112/pirate-poker-texas-hold-em-wip/p1
I can´t get a integer go between 1-7 only. I just can get it go between 0-7.
Thank you for all help I could get
I´ve got a problem in my current game I´m making http://forums.gamesalad.com/discussion/59112/pirate-poker-texas-hold-em-wip/p1
I can´t get a integer go between 1-7 only. I just can get it go between 0-7.
Thank you for all help I could get
Comments
Not random, it should go in order
1,2,3,4,5,6,7,1,2,3,4 and so on
Change Attribute: integer = 1
Change attribute: Game.Integer to (Game.Integer+1)%8
Rule: When attribute Game.Integer = 0,
Change attribute: Game.Integer to 1
There's a better way to do this, but I'm headed out the door. Hopefully this sets you in the correct direction.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
edit: looks like braydon beat me to it.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
http://forums.gamesalad.com/discussion/58794/modulo-function-explanation
Lump Apps and My Assets