Composer question

Aloha,

wonder if sum1 might explain:  composer.SetVariable and composer getVariable()? Why do you need them and what are used for?

Wouldn’t you just define  local variables within your scene module?? Or use a table or array to hold your game variables…

Thanks!

Mostly used for setting variables that can be accessed from several scenes.

Yea… thst makes sense. Thanks!

They mainly used when you really need to pass the variables to different scenes. Thus avoiding using the global variables.

Mostly used for setting variables that can be accessed from several scenes.

Yea… thst makes sense. Thanks!

They mainly used when you really need to pass the variables to different scenes. Thus avoiding using the global variables.