how to do a math function?

tabelortabelor Member Posts: 114
edited November -1 in Working with GS (Mac)
i have the actors from 1 to 9 and they have a lot of values, they can collide and now i want a simple rule: when they collide, then the number they are displaying updates with the number displayed of the actor that they have collided

Edit: i just want if i drag number one to number 2 with the + simbol selected then you get a number three result.

Comments

  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    I am not sure, if I understand, but give every actor an ID (or whatever that number is) in a self attribute.

    Change or constrain those attributes for every actor into a game attribute by a rule of your choice.

    Add a rule to the actor:

    If collides with actorX
    Change self.attribute to self.attribute+game.attribute.actorX

    Now read the changed attribute in another rule and do with it, what you want.
  • tabelortabelor Member Posts: 114
    Thanks a lot your are a genious!
Sign In or Register to comment.