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

  • HopscotchHopscotch Posts: 2,782
    Accepted Answer

    @TRowe007‌ , yes it is.

  • allc1865allc1865 Posts: 777
    Accepted Answer
  • tatiangtatiang Posts: 11,949
    Accepted Answer

    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. :)

Answers

Sign In or Register to comment.