How do I show in a text the names of visible objects only?

Get help using Construct 2

Post » Thu Aug 31, 2017 7:38 am

Hey guys!
I try to show in a text the names of visible objects only but i have really stuck.

Can you please help me? :roll:

Thank you!
Last edited by odiusfly on Thu Aug 31, 2017 3:11 pm, edited 1 time in total.
B
67
S
40
G
20
Posts: 255
Reputation: 16,572

Post » Thu Aug 31, 2017 12:46 pm

This is just updating the text every time it finds an object that matches the condition so all you'll ever see is the last one displayed in text. I guess you could push everything to an array if this is just for debug purposes, that's what I prefer to do!
B
53
S
21
G
94
Posts: 2,441
Reputation: 55,597

Post » Thu Aug 31, 2017 1:37 pm

@plinkie
Thanks for your reply!

Yes basically i can use button.. But i was thinking something without array. Can you please provide a simple capx with array you talking to understand more?
B
67
S
40
G
20
Posts: 255
Reputation: 16,572

Post » Thu Aug 31, 2017 1:47 pm

Like this https://www.dropbox.com/s/ee58t83e1v8xm ... .capx?dl=0

Where if you run it in debug mode and view the array, you can see the listed objects that meet the condition.
B
53
S
21
G
94
Posts: 2,441
Reputation: 55,597

Post » Thu Aug 31, 2017 3:11 pm

Thank you my friend! :)
B
67
S
40
G
20
Posts: 255
Reputation: 16,572


Return to How do I....?

Who is online

Users browsing this forum: miguelromm and 4 guests