I have a scene layers hierarchy question
KeithQ
Member Posts: 25
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
-
UtopianGames Posts: 5,692
Gamesalad reads from the bottom up so the last actor in the last layer will be read first.
Darren.
Answers
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.
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.