Howdy, Stranger!

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

Please help with integers...

SynaaronSynaaron Posts: 9Member, PRO

ok, so...

I am fairly new to GameSalad, and I was wondering if there was a specific way to change an integer to a specific value?
Example: 4 Actors. 1 moves 3 don't.

When Actor 1 collides with Actor 2 change integer to 1
When Actor 1 collides with Actor 3 change integer to 2
When Actor 1 collides with Actor 4 change integer to 3

The integer has different reactions for each value. If this is a poor move, and I should make individual integers please say.


  • SynaaronSynaaron Posts: 9Member, PRO

    Well, since I have no idea how to delete my own post I'll explain what I did.

    I simply made a collision so that when Actor 1 collided with whatever actor it needed, it would change attribute from game.attribute to (game.attribute-game.attribute)+#

    the number represents whatever actor it collides with.

  • pHghostpHghost London, UKPosts: 2,300Member

    You can delete the (game.attribute-game.attribute) part, as that will always equal 0.

Sign In or Register to comment.