Order of Operations

pjburnhillpjburnhill Brighton, UKMember Posts: 18

Hi, can someone explain to me the order of operations that happen on each scene? I'm trying to figure out updating variables at the beginning of a scene and I'm not sure if those updates should happen by an actor at the top of the layers or at the bottom. And is it better to use scene variables instead of actors that update global variables when it comes to getting those variables set before action starts?

Thanks,
PJ

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Code in actors are fired top to bottom. Actors in layers are read bottom to top.

  • pjburnhillpjburnhill Brighton, UKMember Posts: 18

    Excellent, thank you TGG. Not that it necessarily matters, but I assume the order that variables are set is Global variables, Scene variables and then Actor variables (when spawn)?

Sign In or Register to comment.