Maths

ForteForte Member, PRO Posts: 297
edited November -1 in Working with GS (Mac)
In the expressions editior, can you use mathematical symbols in them?

e.g. + - x ÷

I might need it

Kthnx =) Dragokillz

Comments

  • rebumprebump Member Posts: 1,058
    Absolutely in the expression editors marked with an "e". Also modulus (%) and concatenation (..) in addition to the drop down list of functions and the attributes.

    e.g.

    Change Attribute
    `
    self.Position.X -> game.Screen.Width / 2
    `
    (Unless I'm misunderstanding your question, this is pretty basic and core to a lot of the Wiki examples, demos, etc.)
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Instead of x and ÷ use * and /, respectively.

    http://gamesalad.com/wiki/interface_reference:expression_editor
  • rebumprebump Member Posts: 1,058
    CodeMonkey said:
    Instead of x and ÷ use * and /, respectively.

    http://gamesalad.com/wiki/interface_reference:expression_editor

    Thanks CodeMonkey...I should have mentioned that too. I forget that some folks here may have no prior programming experience (or even spreadsheet experience) where they would have learned that the operators are actually different symbols.
Sign In or Register to comment.