Hi Everyone…
Here trying to understand composer.
I have worked with storyboard for 2 years, I feel it’s really good
but, Corona is now using composer, so let’s learn something new…
I open a new project, and saw the black window, that loos like flash, I did not understand anything.
But I just print some text on each scene
and I notice that the SHOW scene is called twice, and also at the end of SHOW scene
then when you HIDE the scene prints something, then goes to the WILL
and back to HIDE, and then to DID of HIDE… very confusing.
But the point is the I just type a text, made a transition
local someText = display.newText(sceneGroup, "Just put whatever", 0, 0, system.nativeFont, 70) someText.x = display.contentCenterX someText.y = display.contentCenterY transition.to(someText, {time=2000, x=display.contentCenterX + 200})
And it moves the text, in Scene 1, but when I come back to the same scene
the text is already in the – x=display.contentCenterX + 200
and it creates a new text, and it moves the second text
Now I have 2 objects
What happens with
storyboard.purgeOnSceneChange = true
I remember this works for me really good at the beginning of main.lua
I hope I can understand this composer, because I guess I will HAVE to start using it right?
Thanks for all your help