set visible when clicked, invisible when other is

Get help using Construct 2

Post » Sat Aug 10, 2013 3:47 am

Hi, i am playing around with c2 and can't solve this myself, tried FAQ but dont know what to find.

I am a developing a simple mobile game using 2 sprites. with explanation texts.

Explanation texts are set to invisible but when sprite is pressed they will be visible.

Question is how to make first explanation text gone when the second sprite is touched? Seconds sprite explanation text will overlap the first. and sprite 2 explanation text will be gone when first sprite is pressed.

I want to add more sprites with explanations later on.

thank you.
B
9
S
1
Posts: 21
Reputation: 679

Post » Sat Aug 10, 2013 3:57 am

You should have posted your capx it would make things easier to see how you've setted up things so far.

A possibility is to only use a single text object and have it display a different explanation according to which sprite is clicked.
Example capx
Make a new instance of "Sprite" and set its "Description" instance variable to whatever you want to add more sprites later.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
267
S
95
G
66
Posts: 7,210
Reputation: 73,086

Post » Sat Aug 10, 2013 6:38 am

Hi kyatric, i cant use the capx u sent. it's for 140, i am using 139.

anyway here is my capx
https://www.dropbox.com/s/ghlpeyv9l8uyv7q/set%20visible-invisible.capxfernanm2013-08-10 06:54:05
B
9
S
1
Posts: 21
Reputation: 679


Return to How do I....?

Who is online

Users browsing this forum: KaptanZorba, MadSpy, Momio, wirelesstkd and 11 guests