It’s very good with examples
This example does not explain anything new that comes with director 1.4.
I would like to see an example how to use Director with initVars() and clean() that are called from the director class and not within new() like initVars() is in this example.
I also would like to know exactly how they are meant to be used together. clean() is pretty obvious but how is initVars supposed to work.
In my head initVars should be called after clean in the previous scene but that’s not the case.
I thought it would work like this:
[blockcode]
newscene->new()
oldscene->clean()
newscene->initVars()
[/blockcode]
but it seems to work like this
[blockcode]
newscene->new()
newscene->initVars()
oldscene->clean()
[/blockcode]
So if you as an example use audio.stop() to stop background music in clean, then it would also stop any background music started in initVars.
It would be really helpful to get this explained
Best regards
Claes [import]uid: 73836 topic_id: 15541 reply_id: 57715[/import]