The difference between Interger & Index
I have a PC and some tutorial videos are done on Mac and they use Index sometimes, but I don't have an (Index) option on PC. Is (Interger) a substitute or not really?
Best Answers
-
Hopscotch Posts: 2,782
-
allc1865 Posts: 777
This article might help, as well
http://forums.gamesalad.com/discussion/46317/index-attribute -
tatiang Posts: 11,949
Index attributes are whole numbers greater than or equal to zero.
Integer attributes are whole numbers and can be negative, positive, or zero.
There is generally no need to use an index attribute. Some people like to have values automatically constrained so that they can't be negative, but if you really need that you can always change or constrain the attribute to max(0,game.attribute).
I used to use index attributes but once I realized that PC users don't have them I stopped using them in favor of integers. I haven't once needed an index attribute.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
TY