Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Level Director X - change the path where levels get their images.
Started by OCG Studios May 04 2018 12:44 AM

2 replies to this topic
corona level director x images path

Best Answer retrofitProductions , 04 May 2018 - 12:58 AM

Hi,

 

Thanks for using LDX.

 

You can't specify a folder per level, but you can specify a sub folder for all your levels by setting 'imagesSubFolder' in config.lua.

Please look at one of the example projects to see how it is setup.

You can still organise your images in sub folders within this folder for example;

images/trees

images/characters

 

You just need to make sure you start with this structure so LDX knows the relative path when you start adding the assets.

 

I hope this helps.

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

OCG Studios

[GLOBAL: userInfoPane.html]
OCG Studios
  • Enthusiast

  • 72 posts
  • Enterprise

Hi,

 

I am looking for a way to change the path the level .Lua files look for images to display in corona.

 

This project will eventually have many images with will require categorisation.

 

Is there a way to let the level.Lua file know in what sub folders to look for the images?

 

Kind regards,

 

Tommie de Jong



[TOPIC: post.html]
#2

retrofitProductions

[GLOBAL: userInfoPane.html]
retrofitProductions
  • Contributor

  • 315 posts
  • Corona SDK

  Best Answer

Hi,

 

Thanks for using LDX.

 

You can't specify a folder per level, but you can specify a sub folder for all your levels by setting 'imagesSubFolder' in config.lua.

Please look at one of the example projects to see how it is setup.

You can still organise your images in sub folders within this folder for example;

images/trees

images/characters

 

You just need to make sure you start with this structure so LDX knows the relative path when you start adding the assets.

 

I hope this helps.



[TOPIC: post.html]
#3

OCG Studios

[GLOBAL: userInfoPane.html]
OCG Studios
  • Enthusiast

  • 72 posts
  • Enterprise

Thanks for your help!




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: corona, level director x, images, path