Level director tutorials

Go to tools->options->project and set ‘Graphics2.0’ to enabled.

Currently it is not exporting the coords based on your anchor values so running it with a Graphics 2.0 enabled simulator is throwing the position off completely.

Export it now and it should look correct.

Also, please be careful when setting your sub folders in the config file because the case does not match your actual folders (capital ‘I’ and ‘L’).

This will work on the simulator but on a real device.

Thanks alot mate.
I’m still getting that error, I’ll try to figure out what is wrong.

What error is that?

It’s the same as I posted yesterday, when I couldn’t quit the program.

But no worries, I tried running as Admin again and it works great.
Think I forgot to run as Admin when I started the program today. :slight_smile:

oh I see, if you right click on the icon and go into properties, somewhere in ‘compatibility’ there is a check box to always run it as an administrator.

Are your images now displaying in the correct positions?

Ah okey.

Yeah, It’s working great.
I’m looking at the " Scroller " example now, to figure out how to “tap” the screen, to get the bird to go up.

Hi dude. I have some problem with storyboard.
Can I mail you the files, and take a look ? 
When you have the time ofc. Thanks!

Yes, send them over with an explanation of the problem and I’ll take a look.

I’ve mailed it.

Hi I am having trouble with parallax scrolling, I’ve set the parallax enabled true and Parallax infinite true on the canvass, and then I’ve set my Layers into Parallax Repeat to true, but it is not repeating, it stops at one point. What am I missing with the options? Thanks in advance.

Hi David,

Are you using v2.7?

If so, I wonder if it is the camera bounds that are stopping it.

Try adding this line;

myLevel:setCameraBounds(nil)

replace ‘myLevel’ with the variable you used when loading the level.

If this doesn’t work email me your project and I’ll take a look (support@retrofitproductions.com)

Oh wow! I missed that line of code! Thank you very much! and yes I am using V2.7. 

Great, pleased you got it working.

For the next release I’ve modified the code so it does not set a default boundary when ParallaxInfinite is enabled as it doesn’t really make sense.

Hi,

I don’t believe there any tutorials for a platform style game at the moment but I’m just about to release v2.7 that does have a good example of a platform style game.

I’ll try and put together a simple tutorial in the next couple of days but in the mean time I would take a look at the scroller2 demo (on the forum or installed with 2.7), load it up in LD and you’ll get a good idea how it is put together.

I simply use rectangles (with no fill or borders) for the physics which is much easier when creating say the floor which could be made up of multiple images.

For images that are not flat e.g. on a slope, I then apply a physics shape to match the image.

Do you want your level to scroll or stay fixed?

I bought LD yesterday, and I’m really happy with it.

But I feel like I have no idea what I’m doing.
I’m really confused.

I’ve been fooling around with CoronaSDK for a while, I’m still a " newbie ".

Let’s say I  just want a " figure " jumping and moving, basic thing.

I save the map as .LDF 

How do I, how can I put this.

Merge it with Corona ? Like Main.lua etc

I’m sorry about this stupid question, I’m just new to this :slight_smile:

Thanks for fast reply pal!

No problem, we’ll have you up and running in no time  :slight_smile:

I recommend you start with one of the example projects, have you located these yet (libraries\documents\Level Director) ?

  1. Copy the ‘Example1’ folder and name it accordingly e.g. ‘MyProject’, you will have the necessary files now (config/main.lua etc).

  2. Edit main.lua file, here you will find the basic code to load a level, very simple; 

    myLevel = LD:loadLevel(‘Level01’)  

  3. Run Level Director and load the ‘Level1.ldf’ file

  4. Check in tools->options that your corona path is set correctly.

  5. Make some changes or simply hit the corona button to export and run it.

These are the very basics and I would spend some time looking at the Assets as these are normally where the ‘Physics’ properties will reside, also look at the physics shape on the grass asset, by clicking on the button by the ‘Body Shape’ under physics properties.

Once you have grasped the basics we can move onto how you interact with objects in a level, again very simple.

Also check out the documentation page for more info.

Let me know how you get on.

Thanks again mate.

I understand now, but if I try to move ex. a tree, and save the file again. I get up a long error list when I try to run it in sim.

What sort of errors?

Also I forgot to mention, when copying another project you should go to tools>options and set the export folder for the project.

If you are still having problems, email me your project and I’ll take a look (support@retrofitproductions.com)

   jt2fjc.png