Creating a DO WHILE or FOR loop
I want to hit a button and then have some code execute a set number of times. One for each occurrence of a word on the screen, i don't really want to create lots of duplicate actors to check the word (using tshirtbooth's word look up template as a starting point).
Any ideas on how a simple loop is done in GS.
Sorry if this is a noob question but I can't see it :-(
Any ideas on how a simple loop is done in GS.
Sorry if this is a noob question but I can't see it :-(
Best Answer
-
JohnPapiomitis Posts: 6,256
You would make it with timers and rules.
For example: You want to loop an attrbute up to 30
You would make a rule when attribute is <30
then inside the rule timer every 0.1 seconds
then in the timer change attribute to attribute+1