A project template for Director 1.4

Here is a project template that utilizes the awesome Director 1.4 class from Ricardo!

This is a lean and mean project template to get you up and running fast that also includes a strategy for Global variables and using custom fonts - a couple of things almost every project needs!

Check it out!
[import]uid: 48203 topic_id: 15541 reply_id: 315541[/import]

I’m getting

Fatal error: Maximum execution time of 30 seconds exceeded in D:\Hosting\7993242\html\wp-includes\media.php on line 34

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 15541 reply_id: 57430[/import]

Ugh, been battling server issues today with GoDaddy… guess it will continue. I think it may have something to do COX though. The traceroute right now is not good. [import]uid: 48203 topic_id: 15541 reply_id: 57432[/import]

Did you try the cloud app for sharing stuff?

http://my.cl.ly/login

it has a mac app to manage the same from your desktop or a web interface from any desktop/device.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 15541 reply_id: 57434[/import]

The link above is just to my blog post, I have the project out on github.

While my site difficulties get figured out, you can get the project here, the README file has most the same info as the blog…

Project files on Github

croisened [import]uid: 48203 topic_id: 15541 reply_id: 57435[/import]

Hey thanks a ton for this! I was meaning to get around to making a nice lean template like this, but was far too lazy. I appreciate your effort!!

Best,
Mario [import]uid: 11636 topic_id: 15541 reply_id: 57661[/import]

It’s very good with examples :slight_smile:

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 :slight_smile:

Best regards
Claes [import]uid: 73836 topic_id: 15541 reply_id: 57715[/import]

I feel the same way as @claes – I’d very much like to read an explanation about how these functions work and where & how they should be placed. I’ve been puzzling over this for a while… [import]uid: 67217 topic_id: 15541 reply_id: 57799[/import]

Hey there,
also at least on a PC when you use a custom font
in your code you have it:

local labelFont = “MaroonedOnMarsBB”

but once installed to your computer, the actual title is

local labelFont = “MaroonedOnMars BB”

Unless you use the actual title (control panel->Fonts to see)
it will not show up in the simulator.

hope that helps. [import]uid: 58922 topic_id: 15541 reply_id: 58459[/import]