Duplicate actor when it's being dragged away
I have a question that feels like the answer should be quite simple. I've been on a break for 7 months, which messed up the flow I started having, because before that break, I only used GameSalad for 6 months.
I have an actor (a letter tile) with lots of instances in a scene (55), each with an index self.attribute 1-55. This attribute tells pretty much all code in the actor from which row in a table it should get its information from.
This actor can be dragged away to make words. When it's released, it just stays put where it is released, which it's supposed to do. On the place it started, you still see the same letter tile, but that's static actor with only the image of the corresponding letter tile.
It seems to me, that I can make dozens of actors stacked onto the same position, carrying the same self.attribute. Tried this with a pile of three and it worked fine, three times as expected. However, there is no way that that's good practice in this case.
I got a rule in the static actor that says:
if collides with actor LetterTile
else set game.attribute to self.attribute (the static actor uses the same row and thus has the same number in its self.attribute)
Spawn actor: LetterTile (at self.pos.x&y, in front of actor)
And I got a rule in actor LetterTile that says:
if self.attribute = 0
do set self.attribute to game.attribute
else nothing (because if it's not 0, it's one of the instances that is there at the start of the scene)
But this doesn't work