Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17078

Is it dangerous to destroy a Node in its scheduled function?

$
0
0

@Tsing wrote:

class Foo: Sprite{
public:
    void myUpdate(float dt){
        if(...){
            removeFromParent();   //foo is destroyed
        }
}

I have similar code which crashes sometimes: Inside myUpdate function, this is 0xDDDDD

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17078


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>