How do I open the googleplay store from inside my game?

Get help using Construct 2

Post » Tue Jan 05, 2016 8:16 pm

Hi im kinda new to programming and also construct 2.
Im trying to build a "rate this game" button for my game so people can leave reviews on the playstore.

How can i do this? I searched in the forum and also in the tutorials section but i didnt find anything about this topic.
I already post this question on the beginner's section but no one answered.

Thanks.
B
18
S
7
G
2
Posts: 13
Reputation: 2,275

Post » Wed Jan 06, 2016 7:52 pm

Just open the link of the game on the Play Store with the "Browser" object ;)
B
15
S
2
Posts: 28
Reputation: 1,385

Post » Thu Jan 07, 2016 3:40 am

After a lot of trys i ended up with this code: Browser (execute javascript): "window.open('market://details?id=applink', '_system');"
And is finally working i have to put this '_system' at the end because a weird bug happens when you try to go back from the playstore to the game.
I hope that someone finds this usefull.

Thanks for the help :)
B
18
S
7
G
2
Posts: 13
Reputation: 2,275

Post » Thu Jan 07, 2016 6:28 am

Wow! That's very useful, thanks for the information :)

And you're welcome :)
B
15
S
2
Posts: 28
Reputation: 1,385

Post » Sat Jan 09, 2016 3:35 am

Excellent!

Thanks for sharing..
B
3
Posts: 1
Reputation: 177


Return to How do I....?

Who is online

Users browsing this forum: Fib, imhotep22, raulcg1981, shukra, sickboysid and 1 guest