Let’s say I have a parent node with N child nodes. They all have scheduled updates on every frame. Whose update: selector gets called first, the child nodes or the parent? Is there any set order?
Let’s say I have a parent node with N child nodes. They all have
Share
The
visitmethod inCCNodehas the following code:So, as you can see, first are visited children whose
zOrderis less than zero, then the current node (the children’s parent) is drawn, then the rest of children is also visited (note that visiting a node will eventually draw it, according to the criteria just explained).