Translations

Know another language? Translate this tutorial!

Twitter share tweet button (Browser Object)

Favourite 35 favourites
Tutorial written by stctrOriginally published on 23rd, March 2014 - 1 revision

Hi this tutorial is about Twitter share button.

What you need:
Browser Object.
A Twitter button (Sprite)
Touch Object

What you do:
Add this event and action to your sheet :


What it means:
&text=
After this line you write your tweet.

WebStorage.LocalValue("HighScore")
Here you give your highscore number.

%23FlappyBird
You can't use hashtag in a link, if you want to, use %23. It will show like #FlappyBird on twitter.

Result:


Unlock your full gamedev potential

Upgrade to the Personal Edition of Construct 2, it has way more features and won't holding back from making money and using your full creativity like the free edition does. It's a one off payment and all Construct 2 editor updates are free for life!

View deals

Plus, it's got a lot of additional features that will help you save time and make more impressive games!

Congratulations on finishing this tutorial!

Did you learn a lot from it? Share it now with your friends!

Share and Copy this Tutorial

You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.

Comments

0
AbelaNET 14.9k rep

Thanks for sharing

Monday, March 24, 2014 at 12:05:53 AM
0
MaorKeshet 1,655 rep

That's useful. Thnx @stctr.

Monday, March 24, 2014 at 7:12:31 AM
0
gfigueroa 2,209 rep

This is awesome! Thanks!!!!

Tuesday, March 25, 2014 at 6:25:58 AM
0
hollowthreat 1,578 rep

thanks for the tutorial, your facebook one works perfectly, however this doesn't work for me on iOS, if i have any space in url(in this case the string after text= involve spaces) it won't open url, and if i have just single word without space, it opens url, but it bring up an empty text box for you to type your tweet.

any other way to have this working like your facebook tutorial? a php perhaps?

anyone got it working?

Tuesday, March 25, 2014 at 11:07:58 PM
0
gfigueroa 2,209 rep

Thanks for the tutorial, it works great with Windows 8 devices, but I have not been able to make it work with Windows Phone, has anyone tried it with Windows Phone?

Saturday, March 29, 2014 at 5:36:21 PM
0
DevDan 1,579 rep

Thanks for the tutorial, works great on Android Crosswalk build too

Wednesday, June 11, 2014 at 12:20:11 AM
0
iceangel 33.5k rep

Thanks for sharing!

Thursday, October 06, 2016 at 3:40:32 PM
0
Jetzoo1 24.9k rep

Thank you for sharing this tutorial .

Cheers,

Monday, September 11, 2017 at 5:53:57 AM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.