remove all previous created groups (when new scene is already opened)

Hi ,

in my app I use your director class 1.3

and for understanding

  1. main.lua
    with a Runtime: addEventListener(“system”, onSystemEvent)

  2. game.lua
    with a function cleangroups (objectOrGroup)

  3. password.lua
    lets say the app is in game.lua and the listener from main.lua comes triggered… it starts the password.lua

my problem: than I can’t anymore call the cleangroups

so my question. Is there ANY Way… to say, when I enter password.lua
to remove all previous created groups (to free all used memory from before)

finally than i Would have a clean start. Now I always have parts from my
game.lua on the screen.
thx
chris
[import]uid: 4795 topic_id: 20890 reply_id: 320890[/import]

Same problem here.

Anyone can help us? [import]uid: 124613 topic_id: 20890 reply_id: 93354[/import]

Are these screens your removing? [import]uid: 49520 topic_id: 20890 reply_id: 93355[/import]

I have a scene, and then i change to scene 2, then i need to back to scene1 again. But when i back to scene1, everything should be loaded from zero. Like is a new scene. In another worlds, works like restart.

But, don’t know why, using director to that, it`s like the first scene 1 loaded first, process some functions for some miliseconds before clean it up and load it again.
So, looks like scene1 loaded first is affecting scene1 loaded for the second time, even if it was for some miliseconds.

Anyone had a problem similar? [import]uid: 124613 topic_id: 20890 reply_id: 93365[/import]

@jamestimberlakejr

This guy is having the same problem, take a look please and tell me if you know something about it.
http://developer.anscamobile.com/forum/2011/07/08/going-next-level-makes-objects-move [import]uid: 124613 topic_id: 20890 reply_id: 93374[/import]

I need to see the code you’re using before I can say anything. Send some sample code of the issue so I can properly diagnose it. [import]uid: 49520 topic_id: 20890 reply_id: 93395[/import]

Solved.

First i tried to change Director for StoryBoard. But the problem was the same, so, i realized the problem was not in those classes.

The problem was in my delta time calculation.

In the beggining of the scene, i was putting previous_time = 0.

Then my Delta time was getting as result a enormous number, and my objects was being moved this number.

Almost burned my brain, but works fine now. =] hahaah [import]uid: 124613 topic_id: 20890 reply_id: 93578[/import]