I have a scene layers hierarchy question

I have an actor that spawn other actors. When a certain condition becomes true those actors destroy themselves. If I place the spawning actor below a certain level in the scene the spawned actors will not destroy themselves. I know this has to do with how the code is read but, I don't know what those rules are. Could someone point me in the right direction.

Best Answer

  • UtopianGamesUtopianGames Posts: 5,692
    edited March 2014 Accepted Answer

    Gamesalad reads from the bottom up so the last actor in the last layer will be read first.

    Darren.

Answers

  • KeithQKeithQ Member Posts: 25

    @DeepBlueApps said:
    Gamesalad reads from the bottom up so the last actor in the last layer will be read first.

    Darren.

    So could this mean an actor on a level closer to the bottom would be unaware of an attribute change by a actor closer to the top? This would make sense in my circumstance.

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited March 2014

    It should still fire unless it was changed before it got back to that actor.

    It doesn't matter where the actor is in the layers if you have something like a game boolean let's call it destroy...if you change it to true and have if game.destroy=true destroy it should still destroy.

    Darren.

Sign In or Register to comment.