GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to compute the GCF in gamesalad

wroachbarrettewroachbarrette Posts: 101Member
edited June 2012 in Tech Support
Hi, I was wondering if anyone had a good idea on how to compute the greatest common factor between two numbers in gamesalad. I love it if there it was just as simple as typing a formula into the change attribute function, but the only was I know how to do it in another language is with a recursive method :/ Any help would be greatly appreciated

Answers

  • ORBZORBZ Posts: 1,303Member
    You can do recursion by having an actor spawn itself. Just set a global var so that it knows when to quit.
This discussion has been closed.