GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

what do the attributes mean

bushidogamesbushidogames Posts: 23Member
edited November -1 in Working with GS (Mac)
hi i am new and don't what all the attributes do

Comments

  • Rob2Rob2 Posts: 2,402Member
    .
  • Rob2Rob2 Posts: 2,402Member
    ..
  • bushidogamesbushidogames Posts: 23Member
    i mean integer and boolean those ones
  • gyroscopegyroscope I am here.Posts: 6,577Member, Sous Chef, PRO
    Hi bushidogames, welcome to the Forum.
    bushidogames said:
    i mean integer and boolean those ones

    Straightforward: boolean is on or off; true or false; yes or no. Like a switch, or a toggle. So if something is set to work if a boolean attribute is true, but it's still false, nothing will happen until it is true, for instance.

    Integer is any number whole number, negative as well as positive. Lots of uses; an example would be a first level score; you'd set the attribute to 0, and script in the Rules to add say, 50 every time an enemy is destroyed. So the first time that happens, this particular attribute then has the value of 50.

    Hope that helps. It's a constant but enjoyable learning curve for quite a while, off your own bat as well as the more experienced (and not so experienced, like myself) guys helping here. So good luck with GameSalad; mind you don't get addicted!

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • bushidogamesbushidogames Posts: 23Member
    thanks so what do the others do
  • gyroscopegyroscope I am here.Posts: 6,577Member, Sous Chef, PRO
    OK; maybe other members will correct me or add more detail to the following, if required:

    Text attribute is for, you've guessed it, text. This is used to update the Text Behaviour contents, for instance.

    Real numbers are more than the following explanation, but enough to say, if you wanted 3.569, for instance, you'd use a real number attribute instead if integer.

    Angle attributes are just that; specifically used in the Expression Editor again. I don't know enough about this one to tell you more. (don't know why integer or real woudn't do).

    Index i'm not sure about, but hey, 5 out of 6 ain't bad! :-) It seems that it has quite a few meanings in mathematics, one of which is used for arrays, which is quite interesting to me. Arrays aren't implemented in GS, so it can't be that. Perhaps someone else will chime in here.

    The two most regularly used attributes by the vast majority of people will be boolean and integer. Hope that helps.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • CodeMonkeyCodeMonkey Posts: 1,803Head Chef, Member, PRO
    What they said. But here is the info on that as well:

    http://gamesalad.com/wiki/how_tos:gsc_create_attribute
  • bushidogamesbushidogames Posts: 23Member
    thanks helps alot
  • chosenonestudioschosenonestudios Posts: 1,714Member
    Geez... I think newcomers shouldn't have access to the forums for like a month after they join....
  • POLYGAMePOLYGAMe Posts: 3,470Member
    But we wouldn't get to have fun answering their silly questions with silly answers.
  • POLYGAMePOLYGAMe Posts: 3,470Member
    Like this:

    attribute
    verb |əˈtriˌbyoōt| [ trans. ] ( attribute something to)
    regard something as being caused by (someone or something) : he attributed the firm's success to the efforts of the managing director | the bombing was attributed to the IRA.
    • ascribe a work or remark to (a particular author, artist, or speaker) : the building was attributed to Frank Lloyd Wright.
    • regard a quality or feature as characteristic of or possessed by (someone or something) : ancient peoples attributed magic properties to certain stones.

    noun ( attribute) |ˈatrəˌbyoōt|
    a quality or feature regarded as a characteristic or inherent part of someone or something : flexibility and mobility are the key attributes of our army.
    • a material object recognized as symbolic of a person, esp. a conventional object used in art to identify a saint or mythical figure.
    See note at emblem .
    • Grammar an attributive adjective or noun.
    • Statistics a real property that a statistical analysis is attempting to describe.
    DERIVATIVES
    attributable |əˈtribyətəbəl| adjective
    attribution |ˌatrəˈbyoō sh ən| noun
    ORIGIN late 15th cent.: as a noun from Old French attribut, and as a verb from Latin attribut- ‘allotted,’ both from the verb attribuere, from ad- ‘to’ + tribuere ‘assign.’
  • chosenonestudioschosenonestudios Posts: 1,714Member
    POLYGAMe said:
    But we wouldn't get to have fun answering their silly questions with silly answers.

    True True... Haha
This discussion has been closed.