How do I touch one object's instance and show other object's

Get help using Construct 2

Post » Sat Jul 04, 2015 8:46 pm

Hi,

I got a question:

Object one has 10 instances, and object two has 10 instances(set invisible as default), if I touch object one instance like the fifth instance, I want the fifth instance in object two set visible instead of setting all two's instance visible.

File:https://www.dropbox.com/s/g0awd5xmj2bo7og/instance%20VS%20instance.capx?dl=0

thanks
B
11
S
3
Posts: 172
Reputation: 1,178

Post » Sat Jul 04, 2015 8:59 pm

System: Pick by comparison...
Image
Image
B
66
S
24
G
7
Posts: 1,515
Reputation: 11,041

Post » Sat Jul 04, 2015 9:44 pm

@korbaach thanks, works cool, one more question, when I touch 5th(obeject one), the 5th(object two) shows, then I touch 6th, 6th shows, but 5th(object two) still visible, how to make it invisible like before when I touch the next? thanks
B
11
S
3
Posts: 172
Reputation: 1,178

Post » Sat Jul 04, 2015 9:56 pm

try to add subevent to event1 :

(event 3) System pick Two where Two.IID=one.IID-1: Two set invisible
Image Image
B
25
S
14
G
137
Posts: 876
Reputation: 71,510

Post » Sat Jul 04, 2015 10:04 pm

@MadSpy thanks, I can set Two.IID not equal to one.IID-1, the problem solved, thanks
B
11
S
3
Posts: 172
Reputation: 1,178

Post » Sat Jul 04, 2015 10:58 pm

Image
B
66
S
24
G
7
Posts: 1,515
Reputation: 11,041

Post » Tue Jul 07, 2015 1:07 am

@korbaach thanks, your way is great, thank you so much
B
11
S
3
Posts: 172
Reputation: 1,178

Post » Mon Dec 28, 2015 12:12 pm

@korbaach
Hi
How to do this with spawner?
I mean this, when touch one of "one" instance
spawner spawn "two" respective instance

https://www.dropbox.com/s/a5w0ocib0tc9n ... .capx?dl=0
Image
B
14
S
6
G
5
Posts: 99
Reputation: 3,825


Return to How do I....?

Who is online

Users browsing this forum: batto and 18 guests