I have 2 scenes and 2 texts on them when i try to change the scene the old text is still on the new scene
Are you using composer? And scenes? Like scene show and stuff? if so you have to add the text into a sceneGroup…
sceneGroup:insert(textName)
If you aren’t using scenes and composer all you need to do is
display.remove(textName)
When you change scenes…
Good Luck! if you are still having trouble please post some code thanks!
I’m using a composer,scenes could you give me some example code with the text code
When you create the text, something similar to:
local textMessage = display.newText( . . . )
make sure to put as the next line (assuming this is in scene:create() or scene:show()
sceneGroup:insert( textMessage )
Rob
Are you using composer? And scenes? Like scene show and stuff? if so you have to add the text into a sceneGroup…
sceneGroup:insert(textName)
If you aren’t using scenes and composer all you need to do is
display.remove(textName)
When you change scenes…
Good Luck! if you are still having trouble please post some code thanks!
I’m using a composer,scenes could you give me some example code with the text code
When you create the text, something similar to:
local textMessage = display.newText( . . . )
make sure to put as the next line (assuming this is in scene:create() or scene:show()
sceneGroup:insert( textMessage )
Rob