Never seen this before?
DimensionGames
PRO Posts: 993
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.
Cheers in advance.
Comments
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
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
Cheers for the help