Has anyone gotten the new (r169) twitter plugin to work?

Discussion and feedback on Construct 2

Post » Sun May 11, 2014 10:24 am

I had a peek at the new twitter plugin, but I can't seem to figure out how to make it work (docs are not up yet).

A simple set share or set text on a button does not seem to cut it. Also: why are there so many seemingly unrelated conditions and actions on the object?
B
77
S
28
G
32
Posts: 481
Reputation: 19,763

Post » Sun May 11, 2014 12:25 pm

you set the type of button in the properties panel.

The text and everything else must be stored in the button previously to it being pressed.

It won't work to load anything "on pressed" or anything like that.

for instance; in a game with score, when the player dies, set the text to the tweet button, so when the players presses it, the text is already there.

If you want to change a parameter more than once, you'll need to reload the button after. every time.

However, for some reason, you can't have 2 tweeter buttons at the same time, guess it's a bug (?)
You do not have the required permissions to view the files attached to this post.
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Sun May 11, 2014 2:27 pm

@Sargas

Thanks for the capx, it's working. I understood the whole thing wrong at first, that's why it didn't work. I tried to create my own button (with my own graphics), like with the old mechanism.

It seems that I will continue to use that instead of the new one, I find the default twitter design quite useless.
B
77
S
28
G
32
Posts: 481
Reputation: 19,763

Post » Sun May 11, 2014 3:56 pm

@Eisenhans, considering this is a first release, are you really surprised at the lack of options? I'm just glad we have an official plugin, because since Scirra has shown they are beginning to implement it, there are lots more opportunities with the Twitter API.

I was also confused at first. I think, yeah, it's a pain the way it's currently set up, having to reload the button every time. But it's not much of a hassle since you can make it work with just one whole additional action.

Matter of fact, I was gonna make a tutorial on using the basic share functions, but as soon as they fix the layout reset bug with the button.
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Sun May 11, 2014 7:13 pm

Anyone else figure out how to use our own graphics for the button? Or is this not supported yet?

-Mike
Image
MIKE ASCHENBRENNER | RCMADIAX
Twitter/Instagram/Vine: @RCMADIAX
B
35
S
7
G
4
Posts: 186
Reputation: 4,574

Post » Sun May 11, 2014 7:23 pm

Nutzaboutpoker wrote:Anyone else figure out how to use our own graphics for the button? Or is this not supported yet?

-Mike


Apparently not yet.
You can however still use the oldschool method described in this tutorial:
https://www.scirra.com/tutorials/927/twitter-share-tweet-button-browser-object
(and of course use your own sprite to click on to call it)
B
77
S
28
G
32
Posts: 481
Reputation: 19,763

Post » Sat May 31, 2014 10:36 pm

Hi everyone,

I'm super excited about twitter working. That example above totally helped me understand how to get it working in my game, but I'm having a problem.

When the twitter button is clicked and displays things correctly, when the window goes away, either by me clicking it to post or even just closing it without posting, the game itself refuses to respond.. i can hear sound of clicking, but no actual actions.. does time scale go to 0 or something?

Thanks
Caleb
B
59
S
9
G
1
Posts: 942
Reputation: 6,553

Post » Tue Jun 17, 2014 9:02 am

I tried to use the Twitter button in beta and with the final release but its still always invisible even if initial visibility is set to true. -.-
(in Chrome)
Just tried node-webkit and internet explorer preview and I see a button....

/Update: Oops! Its working now. There was a plugin blocking Twitter in Chrome. :oops:
Thanks for the great plugin! :)
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
55
S
16
G
6
Posts: 726
Reputation: 9,251

Post » Tue Jul 01, 2014 12:03 am

I have tested Tweet.capx from the #2 post and I got this error

----------------------------------------------------------------
Javascript error!
TypeError: self is undefined
http://localhost:50001/Twitter_plugin.js, line 126 (col undefined)

This is likely a bug in Construct 2 or a third party plugin or behavior - please report it to the developer. Subsequent errors will be logged to the console
-----------------------------------------------------------------

I am trying Chrome/Firefox and Node-webkit with the same results.
Windows7, Construct2 r174.

On my other proyects I had the same error when I try to reload the twitter button, and the app hangs, anyone has a fix for that?
B
24
S
6
G
2
Posts: 22
Reputation: 2,021

Post » Tue Jul 01, 2014 11:24 pm

Bump this one, anyone has the same issue? (previous post)
B
24
S
6
G
2
Posts: 22
Reputation: 2,021


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests