Twitter

Get help using Construct 2

Post » Tue Jun 23, 2015 3:13 pm

I'm using the plugin for Twitter to share my score but the problem is that I get a little time to click button, I want you to click the sprite x go to twitter saying "Your score is 1000" for example. I tried putting the largest share button does not work, I want in an image and not in the button.

Sorry for my english :lol:

PD: which is best twitter or facebook? which is worth more?
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Wed Jun 24, 2015 8:35 am

someone is kind enough to help me?
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Wed Jun 24, 2015 8:44 am

Well your questions are all over the place, and it's not really clear what your issue actually is.

You may read the Twitter plugin manual article and see that to display it as a big image you need to modify the "Size" property of the object.

Otherwise, create your own image and use the Browser plugin "Go to URL" action.
The URL to use is something of :
https://twitter.com/intent/tweet?original_referer=XXX&text=My%20score&tw_p=tweetbutton&url=YYY


Playing with that URL will allow you to make the message how you want and make it look/refer to the twitter account of your choice.
This has more to do with twitter's API.

Finally, Facebook and Twitter are two different social networks. Although it is easier to provide a tweet through an URL than a complete Facebook post.
Twitter might also be a bit less intrusive than FB. But I guess that depends on how you use it.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,332
Reputation: 71,306

Post » Wed Jun 24, 2015 9:51 am

But in the url you could get totalscore variable for example?
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Wed Jun 24, 2015 10:00 am

You can do any string manipulation you want.

"https://twitter.com/intent/tweet?original_referer=XXX&text=My%20score" & MyScoreVariable & "&tw_p=tweetbutton&url=YYY"
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,332
Reputation: 71,306

Post » Wed Jun 24, 2015 10:36 am

Kyatric wrote:You can do any string manipulation you want.

"https://twitter.com/intent/tweet?original_referer=XXX&text=My%20score" & MyScoreVariable & "&tw_p=tweetbutton&url=YYY"

Yesterday I try but I could not, thanks for the help :D
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Fri Jun 26, 2015 2:36 pm

Sorry i am new to twitter. To go @mygame for example, I have to put in the message: "@MyGame My score 1000" for example or do not put the @
:(
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sun Jun 28, 2015 1:35 pm

Otherwise, create your own image and use the Browser plugin "Go to URL" action.
The URL to use is something of :

"https://twitter.com/intent/tweet?original_referer=XXX&text=My%20score&tw_p=tweetbutton&url=YYY"

Sorry i am new to twitter. To go @mygame for example, I have to put in the message: "@MyGame My score 1000" for example or do not put the @
:(
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Mon Jun 29, 2015 1:51 pm

1. Get cranberrygame shareapp plugin(search the forum) add that plugin to C2 and then to your game. Once added to your project select the shareapp plugin and modify it's properties, include the links you want.
2. Then grab a twitter icon from here, don't forget to read their guidelines.
3. Then add event on touched(or clicked, whatever) twitter button action share app via twitter.

You can use this plugin to share on facebook(and other things) too, just repeat steps 2 and 3 for each one. Enjoy.
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Wed Jul 01, 2015 7:49 am

I'll try, thanks
B
13
S
2
Posts: 297
Reputation: 1,717

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests