main.lua confusion....

Hello!

I just need a little info.

If i code an event listener or set some variables in main.lua

 … can i add the listeners or call the variables in any Composer scene inside my project.

For example: I added the Vungle appID ad listener and ads.init in main.lua therefore can I call the ads.show in any scene I want?

Thank You

Yes. Once you have successfully initialized an ad network (say in main.lua), you can simply show an ad (or load another one if the network has that functionality) as needed, and at any time later (including in scenes.)

Why?   A you having trouble with ads or just curious about initializing and then later using them.

-Ed

Ahhmm yeah I was curious…:blush:

Yes. Once you have successfully initialized an ad network (say in main.lua), you can simply show an ad (or load another one if the network has that functionality) as needed, and at any time later (including in scenes.)

Why?   A you having trouble with ads or just curious about initializing and then later using them.

-Ed

Ahhmm yeah I was curious…:blush: