webview problem

Hi. I have problems when I remove a webview, and when I move to another scene I get a blank screen. Can you help me?

If you receive a blank screen after moving to another scene, it may be that your other scene is empty or the code there doesn’t execute.

In cases like this, I’d recommend the good old print debugging. Just add the line: print(“did we get here?”), to where your new scene is supposed to be created. If you don’t see the print in your console then your code simply doesn’t run.

With these kind of issues, it is best to provide the code that demonstrates your issue so that others can more easily help you out.

The easiest way to get help on weird stuff like this is…

  1. Make a tiny project that exhibits what you are seeing.  

  2. Include all the code and zip it up.

  3. Share the zip here.

To demo this should take these files:

  • config.lua,
  • build.settings
  • main.lua
  • scene1.lua
  • scene2.lua

i.e. Make a tiny project w/ two scenes that demonstrates the issue, zip it up, share it.  

Someone here will download it and see what is happening and give you feedback.

Or… as you go through this process, the problem will reveal itself.  I often find that this is the case.

HOLA. Hago un video Perdón por mi mal ingles 

https://www.screencast.com/t/0kglpwlTprMX

the files scene is here

https://www.dropbox.com/s/gv2c0389p536c6i/webview_problem.rar?dl=0

If you receive a blank screen after moving to another scene, it may be that your other scene is empty or the code there doesn’t execute.

In cases like this, I’d recommend the good old print debugging. Just add the line: print(“did we get here?”), to where your new scene is supposed to be created. If you don’t see the print in your console then your code simply doesn’t run.

With these kind of issues, it is best to provide the code that demonstrates your issue so that others can more easily help you out.

The easiest way to get help on weird stuff like this is…

  1. Make a tiny project that exhibits what you are seeing.  

  2. Include all the code and zip it up.

  3. Share the zip here.

To demo this should take these files:

  • config.lua,
  • build.settings
  • main.lua
  • scene1.lua
  • scene2.lua

i.e. Make a tiny project w/ two scenes that demonstrates the issue, zip it up, share it.  

Someone here will download it and see what is happening and give you feedback.

Or… as you go through this process, the problem will reveal itself.  I often find that this is the case.

HOLA. Hago un video Perdón por mi mal ingles 

https://www.screencast.com/t/0kglpwlTprMX

the files scene is here

https://www.dropbox.com/s/gv2c0389p536c6i/webview_problem.rar?dl=0