I am developing an app where on one scene I display and save a group as an image and then change scenes. However, the group is still displayed on the other scene. How do I clear the screen before or after I redirect so the group doesn’t show up on the next scene?
I save the group (name is group) using:
[lua] local baseDir = system.DocumentsDirectory
display.save(group, “image.jpg”, baseDir)
director:changeScene(“nextScene”)
[/lua]
The group will be display in “nextScene”. I have tried the following which didn’t help.
[lua] local baseDir = system.DocumentsDirectory
display.save(group, “image.jpg”, baseDir)
group:removeSelf
group = nil
director:changeScene(“nextScene”)[/lua] [import]uid: 152084 topic_id: 27140 reply_id: 327140[/import]