Exponent and Cubic Root

amigoniamigoni Member Posts: 78
edited November -1 in Working with GS (Mac)
Is there a way to use custom exponents in the formula? I am unclear how this works.

for example Cubic root would be X^(1/3) is there any way to do this? Is that what the exp is for or is that just the e value?

Thanks

Leo

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Hi Leo!

    Cubic Root works exactly as you typed it: X^(1/3).

    i.e: 99^(1/3) = 4.63

    The exp function is just the e value: 2.71828183

    i.e:

    exp(2) = 7.39

    Everything regarding the expression editor can be found in the Support section of the website, here:
    http://gamesalad.com/wiki/interface_reference:expression_editor.

    The only real trick to using it is to make sure all the attributes in your equations are chosen from the drop-down menu.

    So, for:

    game.myCubeRoot = self.currentValue ^ (1/3)

    Make sure you choose game.myCubeRoot and self.currentValue from the drop-down list and don't just type those in...

    I'm excited to see your game using some of the more complex math functions!

    Good luck!
    Joe
  • amigoniamigoni Member Posts: 78
    firemaplegames

    Thanks so much for your reply and thanks for your demo's I have been learning a lot from you without you knowing it.

    Maybe the Engineering degree will finally become useful for something. I will post some demo's soon for some cool behaviors that I discover.

    Cheers
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Awesome!
Sign In or Register to comment.