I can use vector images?

Hello everyone.

In the various guides and in the appropriate API “display.newImageRect” I saw that the Corona supports PNG and JPG (even if they are the first best).

Working with my chart I have learned that it would be better to work with vector images (he works with formats  .swf) and despite the research can not figure out how  being able to use this type of images. Can you clarify if and how I can make use of such images?

This to me is very useful for animations using the same format. Thank you in advance and I apologize for my English is not perfect (I’m not a native speaker)

Hello @maximo.1997,

Corona supports the following vector object types, which should be substantial for most purposes:

Rectangle: https://docs.coronalabs.com/api/library/display/newRect.html

Circle: https://docs.coronalabs.com/api/library/display/newCircle.html

Line: https://docs.coronalabs.com/api/library/display/newLine.html

Polygon: https://docs.coronalabs.com/api/library/display/newPolygon.html

Rounded Rectangle: https://docs.coronalabs.com/api/library/display/newRoundedRect.html

Take care,

Brent

Brent Sorrentino hello,
thank you for your immediate assistance.
I knew those APIs and after your quote I restored a look, as you said allow the creation of geometric figures vector.
But I can not fix my problem: I have the image of a ball in .swf format, and I would use it in the corona to ensure that it is displayed on any device without any grainy. None of the API by you or me mentioned what allows though. Same thing for animations with the same format.
Can you find a solution?

Thanks a lot

We do not support any vector file formats (.swf, .svg, etc.). 

Rob

Thanks Rob

 

At this point I will make many copies of images  with different resolution to decrease the problem shelling, and I will use sprites for animations.

Do you mind if I ask about another question. I saw that you have sent a lot of post and advices, so I believe that you are experienced. I wanted to integrate Facebook in my game by using the appropriate API. This way it is simple to the access and to the friends list. But I wonder whether to save the progress of the individual player. Maybe by making a personal database.

Moreover it is not yet clear how it is possible to exchange the lives or show the score of each level with friends (now all games allow this) I give you the tip  (or code if you already )?I hope I don’t have asked too much, but it isn’t easy to find qualified and available people. Thanks anyway soon.   :slight_smile:

Max

Hello @maximo.1997,

Corona supports the following vector object types, which should be substantial for most purposes:

Rectangle: https://docs.coronalabs.com/api/library/display/newRect.html

Circle: https://docs.coronalabs.com/api/library/display/newCircle.html

Line: https://docs.coronalabs.com/api/library/display/newLine.html

Polygon: https://docs.coronalabs.com/api/library/display/newPolygon.html

Rounded Rectangle: https://docs.coronalabs.com/api/library/display/newRoundedRect.html

Take care,

Brent

Brent Sorrentino hello,
thank you for your immediate assistance.
I knew those APIs and after your quote I restored a look, as you said allow the creation of geometric figures vector.
But I can not fix my problem: I have the image of a ball in .swf format, and I would use it in the corona to ensure that it is displayed on any device without any grainy. None of the API by you or me mentioned what allows though. Same thing for animations with the same format.
Can you find a solution?

Thanks a lot

We do not support any vector file formats (.swf, .svg, etc.). 

Rob

Thanks Rob

 

At this point I will make many copies of images  with different resolution to decrease the problem shelling, and I will use sprites for animations.

Do you mind if I ask about another question. I saw that you have sent a lot of post and advices, so I believe that you are experienced. I wanted to integrate Facebook in my game by using the appropriate API. This way it is simple to the access and to the friends list. But I wonder whether to save the progress of the individual player. Maybe by making a personal database.

Moreover it is not yet clear how it is possible to exchange the lives or show the score of each level with friends (now all games allow this) I give you the tip  (or code if you already )?I hope I don’t have asked too much, but it isn’t easy to find qualified and available people. Thanks anyway soon.   :slight_smile:

Max