More math operators
spacechimp
Member Posts: 9
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
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
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...
They come in handy, like the currently implemented modulous operator, in making quick work of certain logic/conditions.