Looking for some guidance in the following:
I am creating an object via native side (obj-c) and showing it on screen. On an ideal world, I would like to make that object to behave like a display object, so I could add it to the sceneGroup of my current scene.
So, here are my questions:
-
Is it possible to make the object that I created behave like a display object?
-
If not possible, what would be the best way to make that object to move together with the sceneGroup (specially during the show/hide transitions)?
PS: One idea for #2 above would be to create a “moveTo(x,y)” function that would move my object and then execute that function on every frame during the between the “will” and “did” phases of my show/hide scene functions. I would like to know if there is better way than doing this.