Tuesday, November 22, 2022
HomeGame DevelopmentCreate an empty 2D venture , after I add empty node ,set...

Create an empty 2D venture , after I add empty node ,set its place – Cocos Creator


I created an empty 2D venture. Within the venture, I’ll create a node and name the setPosition perform to set the place of the node. When observing the node attributes, I discovered that within the perform I referred to as setPosition, I handed CC Ver2 vector, however calling the setPosition methodology parameter passes Ver3 information, leading to a further z-axis information, which is 0, however this causes the node to not be displayed.


You’ll be able to present your demo, i’ve examined and it really works nicely.
57649.zip (4.9 KB)

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments