use instance variables to link pages?

Get help using Construct 2

Post » Fri Sep 06, 2013 2:20 am

Hi.

I'm trying to make a 'game' out of a comic in a minority language. I want the difficult words to hyperlink to an online dictionary's definition of that word.

Can different instances of the same sprite link to different pages?

Here's where I'm at so far:






Thanks.
B
13
S
1
Posts: 68
Reputation: 1,198

Post » Fri Sep 06, 2013 12:21 pm

(...or is this better resolved by just importing shed loads of sprites, one for each link?)
B
13
S
1
Posts: 68
Reputation: 1,198

Post » Fri Sep 06, 2013 12:35 pm

You should be able to put the link in an instance variable on the sprite.
Then in your browser "Go To" action use the instance name in the URL field.
Is that what you mean?
B
230
S
62
G
33
Posts: 902
Reputation: 40,319

Post » Fri Sep 06, 2013 12:38 pm

Whats wrong with:
On object clicked browser go to object.variable?

There's no reason you cant store the url in an instances variable.

edit:
Paradoxically ninja'dnewt2013-09-06 12:38:55
Image ImageImage
B
168
S
50
G
169
Posts: 8,281
Reputation: 108,191

Post » Fri Sep 06, 2013 1:19 pm

That works!
Thanks.

B
13
S
1
Posts: 68
Reputation: 1,198


Return to How do I....?

Who is online

Users browsing this forum: Fradno and 17 guests