crystal-bit / godot-game-template

Generic template for Godot games
MIT License
650 stars 47 forks source link

Transition.gd bug #60

Closed eerbin13 closed 2 years ago

eerbin13 commented 2 years ago

Hi, I recently started using your game template. Frickin' awesome, btw. But I ran into this error, and it appears to be unrelated to my own code. transition bug

Any insight would be appreciated! Thanks again for the brilliant framework!

eerbin13 commented 2 years ago

It also appears extremely intermittent. The same actions sometimes cause the error and sometimes do not. Leads me to believe it is a bug inside Godot itself.

davcri commented 2 years ago

Hi @eerbin13, thanks for reporting the issue! Which version of the template are you running? Unfortunately I cannot reproduce the bug on the current version.

However that error appears only if you call fade_out twice. Usually you should wait for the previous fade to finish before starting a new transition.

If you want to avoid that error, you could write something like this: image

However the root issue is probably somewhere else in your code.

eerbin13 commented 2 years ago

I think I may have found what was going on. I am rebuilding my project based on your fantastic template (and using what I've learned of Godot), and may have had a call to Game.change_scene() for a scene that doesn't exist (yet).

When it defaults back to the previous screen, the already connected error pops up, because, of course, the signal was already connected on this screen.

I'm going to close this issue here. Thanks for entertaining my quandary.