Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to create a "score" image to share on social media?
Started by ammar71 Jul 24 2019 06:48 AM

2 replies to this topic

Best Answer nick_sherman , 24 July 2019 - 12:20 PM

You can create the image including text, take the snapshot and then immediately delete it again. The user won't see it but it will be in the snapshot.

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

ammar71

[GLOBAL: userInfoPane.html]
ammar71
  • Enthusiast

  • 77 posts
  • Corona SDK

Hello all,

 

At the end of game level I would like to offer the player to share their score to social media. I read on the forum that I can use the native.showPopup() with the "social media" plugin to post an image to social medias.

 

My question is, how do I create that image? I know that I can take a snapshot of the screen and save that to a file, but the score image I display on the screen doesn't have the app name in it. 

 

I would like to create a special image just for social media sharing which has my app's logo and name on it along with the score.

 

Do I have to show that and then capture it or is there a way to do it in memory?

 

Thanks.



[TOPIC: post.html]
#2

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,868 posts
  • Corona SDK

  Best Answer

You can create the image including text, take the snapshot and then immediately delete it again. The user won't see it but it will be in the snapshot.



[TOPIC: post.html]
#3

ammar71

[GLOBAL: userInfoPane.html]
ammar71
  • Enthusiast

  • 77 posts
  • Corona SDK

Thanks @Nick. I'll give it a try.




[topic_controls]
[/topic_controls]