More math operators

spacechimpspacechimp Member Posts: 9
edited November -1 in Working with GS (Mac)
It would be great to have bitwise operators (AND,OR,NOT,XOR,ShiftLeft,ShiftRight) in Game Salad, great for masking "or'ing" values together, negation, etc. It would be valuable in storing game data by or'ing bitmasks together and storing into integer game attributes. Can be used to store game history too!

examples OR:
A=B|C
A=A|B
A|=B

Also bit shifting examples, shifting left by 2 bits:
A << 2
A=A<<2

Comments

  • rebumprebump Member Posts: 1,058
    Ditto. They are a staple to graphics and game programming.
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    hmmm...looks a little too programmy for me...sure it is useful...but the appeal of GameSalad for me was not needing to understand programming...or too much Maths....

    I promise I'm not a complete numb nutt... just chipping in ...

    Maybe if it could be put into GS but still using some understandible drop downs...
  • rebumprebump Member Posts: 1,058
    They are just more math oriented operators akin to +, -, /, *, %.

    They come in handy, like the currently implemented modulous operator, in making quick work of certain logic/conditions.
  • ORBZORBZ Member Posts: 1,304
    I agree, bit ops would be handy. But more important to the target audience (that is people without programming experience) would be to include structure data types so that people can group their variables. List data types too, although technically a structure is a list, and a list is a structure.. ;) Depends on how you look at it I suppose.
Sign In or Register to comment.