Is it possible to get the game to tweet a screenshot?

Get help using Construct 2

Post » Tue Dec 16, 2014 6:57 am

Hey all,

I'm experimenting with making a little mobile game, just for fun (and to see what C2 can do on mobile these days)

A lot of games these days have the great marketing strategy of allowing a user to tweet a screenshot at the end of every level/playthrough etc, along with some text, like 'I scored 1357 in [Game name here]!'

I've looked at the Twitter plugin, but I don't really see anything along those lines. I also don't want to use the default Twitter button, but to make my own.

Anyone with more experience than me know if this is possible?

Cheers!
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Tue Dec 16, 2014 7:35 am

how about writing your own javascript plugin?

i don't know if C2 supports (it could) that function, but all in all i think you can download some twitter plugin / code and write your own
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
42
S
14
G
12
Posts: 624
Reputation: 9,421

Post » Tue Dec 16, 2014 8:51 am

Only possible way to share images on twitter via HTML is twitter api.
For wrappers like phonegap and crosswalk is cranberrygames share plugin an option.
B
31
S
10
G
3
Posts: 310
Reputation: 6,046

Post » Tue Dec 16, 2014 10:33 am

@saiyadjin Unfortunately I have no idea how to write a plugin for C2... I really don't know any javascript :P
@stctr I didn't see anything relevant to Twitter sharing in CranberryGames' plugins.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Tue Dec 16, 2014 3:00 pm

plugin-phonegap-related-plugins-crosswalk_t109586

ShareApp: share app via SNS (facebook, twitter, google+, whatsapp, line, SMS, email)
B
31
S
10
G
3
Posts: 310
Reputation: 6,046

Post » Wed Dec 17, 2014 3:10 am

@stctr Cranberry linked me to your share plugin, which I hadn't seen. Would that work? I'm assuming because you linked me to cranberry it won't work, but I don't see any reason it wouldn't, at least from your description.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Wed Dec 17, 2014 9:09 pm

sqiddster wrote:@stctr Cranberry linked me to your share plugin, which I hadn't seen. Would that work? I'm assuming because you linked me to cranberry it won't work, but I don't see any reason it wouldn't, at least from your description.


Mine cannot share pictures, cranbbery's can with modification. If you already bought cranberrygames plugin i can try to modify it to share pictures to twitter for you.
B
31
S
10
G
3
Posts: 310
Reputation: 6,046


Return to How do I....?

Who is online

Users browsing this forum: Magistross, mihirolover, tarek2 and 8 guests