different types of numbers
ADSentertainment
Member Posts: 397
Is there a way you can make it so an a value of something can be several different types of numbers? As in lets say I wanted an attribute to be either equal to 1, 5, 20, 14, or 23. How could I do that?
Having trouble with your game? Sounds like a personal problem.
Comments
Having trouble with your game? Sounds like a personal problem.
There are a lot of videos out there . . . Start with this one:
Having trouble with your game? Sounds like a personal problem.
tableCellValue( game.TB angles ,random(1,tableRowCount( game.TB angles )),1)
the numbers I have in the table are:
160
20
30
40
150
140
130
all of them are in one column. Do you know what I'm doing wrong?
Having trouble with your game? Sounds like a personal problem.
Can you post a screenshot of your rules?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Here's a screenshot of the table in case you need to look at that too:
Having trouble with your game? Sounds like a personal problem.
Change Attribute self.Rows to tableRowCount(tableName)
Change Attribute self.Random to random(1,self.Rows)
Change Attribute self.Direction to tableCellValue(tableName,self.Random,1)
Does that work?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
So rather than:
If X then do Y*(random 1,10)
Try:
Make A = (random 1,10)
If X then do Y*(A)
-LewisOne (My Website, FB, Twitter, IG, YT)