Multiple of one actor, different behavior.

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?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2013
    Is there something about your rule that is attempting to access a table row or column that doesn't exist? What happens when you create a new actor and give it a DisplayText behavior with the tableCellValue that isn't showing up?

    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

  • ShmirlyWhirlShmirlyWhirl Member Posts: 189

    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.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I hear you... it sounds like it's just buggy behavior. If you want another set of eyes, feel free to send me a link to download the project file. Maybe I can figure something out (maybe not).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ShmirlyWhirlShmirlyWhirl Member Posts: 189
    edited April 2013
    Yeah, there's something definitely buggy going on here. I tried making a new actor that would just display static text, but that won't even work.

    To the bug report!
Sign In or Register to comment.