I can make a loop in the GS?
hlondero
Member Posts: 20
I can make a loop in the GS?
Best Answer
-
tatiang Posts: 11,949Replace the log statement with your load attribute rule. I'm not sure if you can concatenate key names (e.g. "SavedKeyNumber"..game.loopcounter), so you might have to have a rule in the loop that says When self.loopcounter=1 LoadAttribute SavedKey1; when self.loopcounter=2 LoadAttribute SavedKey2; etc.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
example:
Load attribute 1
Check ...
Load attribute 2
Check ...
...
...
In code would be "For 1 to 33"
I had tried a similar fashion but without the timer.
Yes, i can use self.loopcounter in the Key of Load Attribute.
Thank tatiang. ^:)^
Follow Eating My Hat on Facebook, Twitter and the Blog
Check out my templates in the GS Marketplace or at the store
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User