Atrribute types

IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
edited November -1 in Working with GS (Mac)
Hello, could you explain to me the differences between attribute types (boolean, text, integer, real, angle and index)? Which of them is better for some actions, or what are the pros and cons of each of them?

Thank you for your time and help.

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Have a look here:

    http://gamesalad.com/wiki/how_tos:gsc_create_attribute

    Hope that helps,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • daverennerdaverenner Member Posts: 133
    How much ram does each attribute take?
    For instance, Boolean: 2bytes, String: length plus 10bytes, Integer: 2bytes...and so...
    Is there a maximum number of attributes? If i wanted an attribute for every pixel in a 240x300 block that would be 72,000 attributes. Could GS handle that?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    My games all have a few hundred global attributes and gs runs fine.
  • victorkin11victorkin11 Member Posts: 251
    daverenner said:
    How much ram does each attribute take?
    For instance, Boolean: 2bytes, String: length plus 10bytes, Integer: 2bytes...and so...
    Is there a maximum number of attributes? If i wanted an attribute for every pixel in a 240x300 block that would be 72,000 attributes. Could GS handle that?

    even you can have 72,000 attributes, I don't think you can access all that attributes without index, & pointer!
Sign In or Register to comment.