Multiple of one actor, different behavior.
ShmirlyWhirl
Member Posts: 189
So I have six of the same actor on the screen, essentially they are just grabbing an image name from a table and changing their image to that value.
The first actor I put on the scene works just fine. However, the second and beyond don't work at all.
I have tried adding the actors from my actor list, and I have tried copying the original actor.
I know the code is fine, because I can make the first (functioning) actor grab the images I want. That is not what I am asking.
The strange part- I put a Display Text in the actor, just to see if anything was working. The first one displays the text, the second one doesn't even get that far.
Both actors are locked.
has anyone had a similar problem?
The first actor I put on the scene works just fine. However, the second and beyond don't work at all.
I have tried adding the actors from my actor list, and I have tried copying the original actor.
I know the code is fine, because I can make the first (functioning) actor grab the images I want. That is not what I am asking.
The strange part- I put a Display Text in the actor, just to see if anything was working. The first one displays the text, the second one doesn't even get that far.
Both actors are locked.
has anyone had a similar problem?
Comments
As you know, it's hard to troubleshoot this without seeing your rules and probably a screenshot of at least part of your table as well. "I know the code is fine." Ah yes, I've said this myself many times...
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
The table it looks at has seven rows. The row each actor looks at is determined by a local attribute (self.row). I have tested the one actor that works by cycling its self.row up to seven when I click on it. Each time, the actor displays the right image.
I then make a copy of that actor. The original works, the copy does not.
Like I said, I put a Display Text in the prototype- the original actor displays the text just fine. The copied actor does not even do that. Regardless of if the image-finding rules are set up properly, it seems nothing in the actor is getting triggered.
I would show you the rules, but at this point it's kind of moot. I have turned everything off except the display text, and even then the second instance of the actor does nothing.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
To the bug report!