Never seen this before?

DimensionGamesDimensionGames PRO Posts: 993
edited November -1 in Working with GS (Mac)
Was eating through one of CodeMonkeys demo's and found he was using an atrribute called self.deltaY and self.deltaX it was placed under the tag of an actor. How do you do that?

Cheers in advance.

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    okay... you know where to go to do it...

    just click the + button and add your own new attribute.
    the deltaX is just a descriptive name that CodeMonkey gave to that attribute he created.

    when you add attributes to [Game] they are global... accessible and manipulatable by any actor in the game.

    when you add attributes to an Actor (self. ???) they are local ... accessible and manipulatable by only that actor.

    you can use the self.Attribute to manipulate a game.Attribute..
    EX: if actor receives event touch is pressed ChangeAttribute game.ID to self.ID
    and... manipulate other actors in game.

    MH
  • DimensionGamesDimensionGames PRO Posts: 993
    Well that is what I thought but under the attrirbute menu there was no sign of it which is what confused me :)
  • MotherHooseMotherHoose Member Posts: 2,456
    sorry... about that...

    CodeMonkey doesn't reference deltaX or deltaY in any of the behavior codes?

    you could drag in a display text on that actor and expression it to show deltaX or deltaY...

    delta usually means a change... is it a change in X ...or does it store the original X to compute the change?

    What the hey is that demo?

    MH
  • DimensionGamesDimensionGames PRO Posts: 993
    I think it's called no actors example (would send you a link but on my iPod)

    Cheers for the help :)
Sign In or Register to comment.