Searching Google

Get help using Construct 2

Post » Sat Mar 15, 2014 9:48 am

Hi guys,

I needed a small help.
So in my game i want it in such a way that when a person types sumting in the text box and clicks on the button , it searches the contents of the text box in google.
If u dont get what i mean its like-
i type hawaii and press the button, it searches for hawaii in google.
So is there any way i can do it ?

Thanks,
Ashwin
B
15
S
3
G
1
Posts: 111
Reputation: 1,664

Post » Sat Mar 15, 2014 10:06 am

Append whatever the user writes in a text box after this "https://www.google.com/#q=" in a text object. Then use the Browser plugin to
go to that url perhaps with a button. Add a System Wait 0.1 sec before the Go to url action to prevent local-host problem.
My game Petrolhead Tactics is now on Steam Greenlight. I could not have done this without C2 ? Please rate, if you like!

Steam client already open: petrolheadtactics.com/steam
Web: petrolheadtactics.com/greenlight
B
20
S
4
G
4
Posts: 132
Reputation: 4,130

Post » Sun Mar 16, 2014 7:36 pm

I was searching for a solution for a similar thing. Thanx for the hint with the browser object.
Why exactly is the System Wait 0.1 sec needed? I didn't notice any localhost problems ...
B
15
S
4
G
3
Posts: 52
Reputation: 1,513


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 12 guests

cron