@ozergul wrote:
Hi,
is this possible in cocos2d-js now?i tried this way :
console.log(this.node._parent)
this.node
is root node. it returnscc.Scene
but node's name is empty.http://cocos.sonarlearning.co.uk/docs/nodes
in this page here is the c++ version
nodeName->getScene( );
but in Js part writing:
// no JavaScript equivalent
how do I get scene name in cocos2d-js
cant getting current scene name is a big problem for me.
Posts: 2
Participants: 1