How can I create a table loop?
3absh
Member Posts: 601
So here's the deal..
I have a sword that changes colors every level increase then loops all over and starts again every 10 levels.
This is the rule i came up with and it works except for one little issue
The problem with this loop is that Mod(10,10) equals Zero
and since there is not Row Zero in the table that has the color value of the sword then sword simply stays at color of row number 9
How can I use the Mod function for 10 referenced values on a table?
Comments
In other words how can I do a cycle while skipping that Mod(10,10) = zero
After about an hour of helplessly staring at the screen and scratching my head I finally found the solution
@abuabed84
I doubt your solution is working at higher levels.
Rather do the following (assuming your player levels start at 1):
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
@Hopscotch Thank you