0 votes

I have seen issues similar to this one, but none of them help me.

When I deploy my game to android, it is stuck on the splash screen. It just flickers forever.

Yes, I am using the correct export templates.

I have narrowed the problem down to using getnode() in _ready(). I don't know why, because this should only be called during run time, not when the game is first loading. But whenever I comment out the getnode() and deploy it, it works.

It's also inconsistent about running. Sometimes it just deploys and runs when all I do is comment the get_node line out, deploy it, remove the comment, and it still runs okay.

I am very confused and this makes no sense.

Btw I am using Godot 3.0.2 and export templates 3.0.2. Windows 10 PC if that matters

asked Jun 6, 2018 in Engine by SilentCrow (12 points)

Are you 100% sure it runs fine when get_node is commented out? Sometimes bugs are random, which means you have to retry multiple times to confirm it's not random.

If it's not random, then maybe get_node has issues getting your node. Maybe it's not found? If you expected it to work, maybe an error occurred before this which made your node not available for example, like a resource failing to load in the scene.

That flicker is usually related to adreno devices that do not fully support GLES3, but if dissappear with that get_node is strange, unless that node has an unsupported shader (commonly on 3D nodes or particles).

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.