ask
I could not get this issue here, could you please send me an example by e-mail? [import]uid: 8556 topic_id: 15701 reply_id: 58172[/import]
ask
I could not get this issue here, could you please send me an example by e-mail? [import]uid: 8556 topic_id: 15701 reply_id: 58172[/import]
Guys, about the loading feature, it’s not that easy! You have to think that are many kinds of apps that need different kinds of loadings. [import]uid: 8556 topic_id: 15701 reply_id: 58174[/import]
thx ricardo [import]uid: 86417 topic_id: 15701 reply_id: 58180[/import]
First, thx for your work. Then :
“2. A change screen function with loading screen option” could indeed be a good idea.
Related to your “Better sample” will, I would ask some work on your template.
I may add that in director 1.4, template was not that clear (it had a 1.3 tag).
Maybe you could work on it, just to avoid us from doing things the wrong way.
[import]uid: 9328 topic_id: 15701 reply_id: 58192[/import]
Thank you, Ricardo! I’m sending you a zipped test project files. [import]uid: 67217 topic_id: 15701 reply_id: 58216[/import]
Try this:
elseif effect == “flip” then
showFx = transition.to( currView, { xScale = 0.001, x = _W / 2, time = fxTime, onComplete = phase2 } )
[/code] [import]uid: 8556 topic_id: 15701 reply_id: 59304[/import]
Awesome, Ricardo! It worked!!
Please note, the hairline split I mentioned only appeared on device build, not on simulator. With this fix, I don’t see it on iPad anymore. [import]uid: 67217 topic_id: 15701 reply_id: 59348[/import]
+1 on the Remove module()
I am not using director, and I was about to then this whole thing about modules being the work of the devil appeared lol.
Once this thing is streamlined, I’ll integrate into my games on a go forward basis.
For now, I lurk closely and wait patiently
ng [import]uid: 61600 topic_id: 15701 reply_id: 59390[/import]
I did a lot of tests using Director without module() function. I did not saw any significant difference with or without modules. The bad news is that Director should be global and to keep working with previous versions it would be created like this:
director = require("director")
or be required on every single scene file. I don’t think it is a good idea… specially for new developers!
Any suggestion? [import]uid: 8556 topic_id: 15701 reply_id: 59535[/import]
Personally, I’ll be ok for using it wither way…
I think new devs may just use it with the global, that should still be cleaner (global name space wise) then working with modules… [import]uid: 10478 topic_id: 15701 reply_id: 59540[/import]
I just made a big comment relating to this discussion here:
http://developer.anscamobile.com/forum/2011/10/01/modules-director-class#comment-59548
I could be wrong, but I think what @nicholasclayg really wants is a function that unloads/releases each scene properly from memory (not about unloading Director class from memory).
I’m a newbie when it comes to coding/programming (although as a developer, I have years of experience working with teams) – and in my project, I require Director as global module, and so far, I haven’t found any issue with it. [import]uid: 67217 topic_id: 15701 reply_id: 59554[/import]
I heard about that “unrequire” function and tested it inside Director. There is a function called unloadScene in Director with this code:
------------------
-- Try to free memory
------------------
package.loaded[moduleName] = nil
To do exactly what “unrequire” does, just add this line:
------------------
-- Try to free memory
------------------
package.loaded[moduleName] = nil
\_G[moduleName] = nil
Is there somebody that had issues with Director that could test it for us? It cleans the module from the global table. [import]uid: 8556 topic_id: 15701 reply_id: 59563[/import]
ricardorauber: I have some problems when i changed the scene in the simulator everything looks right the graphices and the spritesheet is loaded but on my htc test iphone i see the background from the last scene and the sprites are not loaded. [import]uid: 86417 topic_id: 15701 reply_id: 59894[/import]
ricardorauber: I would like to see the possibility to have a clean()
method inside groups that you have inserted to the localGroup en each scene.
As an example a button that uses transitions and timers could have a clean()
just like on each scene that will be called to clean up before its removed.
No, need to have it recursive. Only on objects directly inserted to the scene. [import]uid: 73836 topic_id: 15701 reply_id: 60000[/import]
Hi Ricardo,
I would like to see Director 1.5 work with UI widgets and include examples of how to use them correctly. The problem I’ve run into is trying to click a button, show a picker wheel, select a value, and then clicking a button to make that wheel go away. I can’t seem to get this to work. Would appreciate your help or a bug fix for this! [import]uid: 52748 topic_id: 15701 reply_id: 60329[/import]
martin.edmaier
Have you tested it with other devices? If your app doesn’t work the same on different devices, so it’s not just a Director issue, it might be a Corona issue.
claes.lindblom
You can do it by yourself inside clean function! Something like this:
for i=1, localGroup.numChildren do
if type( localGroup[i].clean ) == "function" then
localGroup[i].clean()
end
end
dave41
I will take a look on widgets and put a sample on 1.5! [import]uid: 8556 topic_id: 15701 reply_id: 60383[/import]
"Page turn fx is hard to do and need some special features like the “2.5d image transform”
No, it doesn’t:
http://www.youtube.com/watch?v=A0-UMUEymcQ
So get to the work [import]uid: 12704 topic_id: 15701 reply_id: 60414[/import]
gtatarkin
You did that sample based on the 3D Tunnel sample by Matthew Pringle, right?
http://developer.anscamobile.com/code/3d-tunnel
The thing is that he created a table with every single pixel color of the texture. How could I do that dynamically? [import]uid: 8556 topic_id: 15701 reply_id: 60445[/import]
“You did that sample based on the 3D Tunnel sample by Matthew Pringle, right?”
Nope, Matthew do it wrong in my opinion. Just look at the comments in his code sharing example.
Look at the Text Candy demo and you will know whole 2.5D transform magic [import]uid: 12704 topic_id: 15701 reply_id: 60468[/import]
Hmm I don’t have it here, could you please send me a sample? [import]uid: 8556 topic_id: 15701 reply_id: 60470[/import]