Difference between attributes and behavior???

justinodunnjustinodunn Member, PRO Posts: 226
I saw a tutorial and the guy used rotate attribute for an actor to rotate automatically, i thought why not use the rotate behavior instead?

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2014
    It's impossible to answer your question without knowing the particular scenario involved in the tutorial.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Also there is usually multiple ways of accomplishing the same thing in Gamesalad. Just because one person does it one way, doesn't mean you can't do it another. You should do whatever works best to fit your particular needs.
  • Thunder_ChildThunder_Child Member Posts: 2,343
    edited February 2014
    I can see where rotate attribute would want the actor to rotate all the time. I would use the behavior after a separate function had taken place personally.

    Example would be if I wanted to have a rotating constantly I would changed the rotate attribute to like 10.

    If I wanted to push a button to make the platform rotate from a stationary position I would make it happen as a behavior.

    Of course you can still place a behavior to make it constantly rotate. Im just giving MY example of why I would use attribute or behavior.

  • justinodunnjustinodunn Member, PRO Posts: 226
    so basically, attribute is something that is constantly running? and a behavior is something that has to be triggered by the user (rule) to perform specific actions?
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    If you are familiar with programming at all an Attribute in Gamesalad is like a Variable in programming.
Sign In or Register to comment.