Autor Tema: Share score  (Leído 3258 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
    • Ver Perfil
Share score
« en: Agosto 03, 2016, 12:32:20 am »
Hi,
I'm about to release my game, but I'm sad that I will never know if people succeed to finish it.
I wondering if there is a way to share the score in Twitter or Facebook directly from my game.
For exemple :
"My hight score on GAME_NAME is XXXX, can you beat me ?"


Any ideas to afford this (with PixTudio) ?
« última modificación: Agosto 03, 2016, 01:08:20 am por Grew »
My game developer instagram :
https://www.instagram.com/ben_dev_game/

Conectado gecko

  • Hero Member
  • *****
  • Mensajes: 740
  • Karma: 45
  • Sexo: Masculino
    • Ver Perfil
    • Torres Baldi Studio
Re:Share score
« Respuesta #1 en: Agosto 03, 2016, 05:48:28 pm »
The solution i'm thinking of is using an intermediate web server where you send the scores, and then from that server you can post them to the social networks.

For example you can run PHP or Ruby on the web server, and there are lots of libraries or scripts that can authenticate and publish on facebook or twitter.

I don't know if it's possible DIRECTLY through bennugd, but i'm positive sure that is possible using an intermediate server. (I've done this using a NodeJS server, for example).
Torres Baldi Studio
http://torresbaldi.com

Desconectado Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
    • Ver Perfil
Re:Share score
« Respuesta #2 en: Agosto 04, 2016, 07:43:03 am »

Thank you for your reply.


Is there a way to open an url in PixTudio ? The OS will be able to open this url with the associated app. For exemple if PixTudio send a twitter url request on Android, I think Android will open it with the Twitter App.
My game developer instagram :
https://www.instagram.com/ben_dev_game/

Desconectado l1nk3rn3l

  • Hero Member
  • *****
  • Mensajes: 1885
  • Karma: 252
  • Sexo: Masculino
    • Ver Perfil
Re:Share score
« Respuesta #3 en: Agosto 04, 2016, 01:01:17 pm »
Please add a new post with ...   Bennugd Christmas Wish List..


 ;D

Desconectado Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
    • Ver Perfil
Re:Share score
« Respuesta #4 en: Agosto 05, 2016, 03:29:14 am »
Haha !


You're right ! :P
My game developer instagram :
https://www.instagram.com/ben_dev_game/

Desconectado blabla

  • Jr. Member
  • **
  • Mensajes: 72
  • Karma: 5
    • Ver Perfil
    • GameBlabla
Re:Share score
« Respuesta #5 en: Octubre 07, 2016, 12:54:25 pm »
That's how i did for my BennuGD games (or even my C Android games), Pixplantilla can open URLs or even URIs !
I'm not sure if the recent Pixplantilla can do this though...

For twitter, you can open it up inside of a browser :
Código: [Seleccionar]
exec(_P_NOWAIT, "https://twitter.com/intent/tweet?text= My score is : "+(int)myhighscore+". I'm so great #sogreat", 0, 0);
Or even better, using the official twitter application:
Código: [Seleccionar]
exec(_P_NOWAIT, "twitter://post?message=My score is : "+(int)myhighscore+". I'm so great #sogreat", 0, 0);