Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Json Array Exporter Custom Format Help
Started by lemmelmatt Oct 15 2017 08:15 AM

1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

lemmelmatt

[GLOBAL: userInfoPane.html]
lemmelmatt
  • Observer

  • 2 posts
  • Corona SDK

Hey Everyone, 

 

I'm having a hard time finding the exporter folder to create a custom format. I want to copy the existing json array format and tweak the structure to my needs.

 

Currently it has every sprite on the atlas stored as one long list with no delineation between them. I would like to instead have it create multiple lists containing just that animation so there is a natural separation. Something like this:

{
     "nameOfFirstSet": 
[ 
	{
	"frame": "image01.png", 
	"x": 330, 
	"y": 660, 
	"cropped": true  .....ALL DATA ABOUT THIS FRAME
        }, 
	{
	"frame": "image02.png", 
	"x": 330, 
	"y": 660, 
	"cropped": true  .....ALL DATA ABOUT THIS FRAME
	} 
]
     "nameOfSecondSet": 
[ 
	{"frame": "image08.png", 
	"x": 330, 
	"y": 660, 
	"cropped": true  .....ALL DATA ABOUT THIS FRAME
        }, 
	{
	"frame": "image09.png", 
	"x": 330, 
	"y": 660, 
	"cropped": true  .....ALL DATA ABOUT THIS FRAME
	} 
]

How do I go about doing that?



[TOPIC: post.html]
#2

lemmelmatt

[GLOBAL: userInfoPane.html]
lemmelmatt
  • Observer

  • 2 posts
  • Corona SDK

*bump

 

any way to do this or maybe point me in the right direction? Thanks!




[topic_controls]
[/topic_controls]