Twitter

0 favourites
  • 14 posts
  • 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

    PD: which is best twitter or facebook? which is worth more?

  • someone is kind enough to help me?

  • 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 :

    [quote:2c7n8s2i]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.

  • But in the url you could get totalscore variable for example?

  • You can do any string manipulation you want.

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

  • You can do any string manipulation you want.

    [quote:xiqfpfyl]"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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

  • 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

  • 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.

  • I'll try, thanks

  • Or just experiment with the URL as given earlier.

    Each parameter after the "?" is like a variable.

    "original_referer=" is like the URL of your game where it is currently being executed.

    You can cheat and have that parameter as :

    [quote:13hnqw5h]"https://twitter.com/intent/tweet?original_referer=" & browser.URL &

    Where Browser.URL will automatically fill in the URL for you. Beware during your test on local though, the returned URL will likely be "http://localhost".

    "&text= My text " & myVariable & "blabla"

    The message of the tweet itself and concatenation to add the value of a variable.

    That's all that's needed.

    If you make your text "&text=@MyGame I scored " & myScore & " points" this will send a message directed to the "@MyGame" account. It still can be seen publicly, but if mygame is configured to get notifications it will receive some as the message is tweeted.

    Last moderation note: Please don't create multiple topics on the same subject, prefer to keep all your related questions into a single and same topic.

    Merging them to reduce forum's noise.

  • I want to go directly to mygame account but without putting forward mygame

  • Kyatric Do you know how to get callback from Twitter if the user already shared his tweet or cancelled?

  • Joannesalfa: No.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)