Alternative to a Nested Loop

MathPickleMathPickle Calgary, Alberta, CANADAMember, PRO Posts: 15

Nested Loops are not currently possible in Game Salad. What is the best alternative to a nested loop? Let's say I wanted to use them to lay out a hexagonal grid after the player inputs "n" - the number of hexagons along an edge. For example... for n = 3 the output would be:

   x x x
  x x x x
 x x x x x
  x x x x
   x x x

In 2010 FireMapleGames addressed an alternative to nested loops, but an update would be good as his links are no longer active.

Comments

Sign In or Register to comment.