0 votes

I am making project with spawner, that spawn meteorits. When is meteorit hitted that he destroys.
But it makes an error :

E 0:00:14.613 signalcallback: Resumed after yield, but class instance is gone.
Condition "instanceid && !ObjectDB::getinstance(instanceid)" is true. Returned: Variant()
script/visualscript.cpp:2324 @ _signalcallback()

Sorry, for my english.
Thanks for help.

in Engine by (14 points)

1 Answer

+1 vote

Well, just reading the error message, did you write something where the ship yields to the asteroid exploder but the asteroid exploder removes the ship? At the end of yield statement, is the caller guaranteed to still be there?

Alternately, if you are yielding from one asteroid to another, make sure each has its own properties.

by (157 points)

Oh, i see now. Ye, when the meteorit hit the ship. The ship explode and its removed.
But whst can I do with that. I have no clue.

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.