Please help with integers...
Synaaron
Member, PRO Posts: 9
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.
Comments
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.
You can delete the (game.attribute-game.attribute) part, as that will always equal 0.