How do I make an object become visible when the player near

Get help using Construct 2

Post » Fri May 23, 2014 6:33 pm

How would I make an object become visible when the player become near the object? I thinking I have to use something based on pixel distance. Any ideas on how I can name this work?

Thanks,
John L
B
19
S
4
G
2
Posts: 37
Reputation: 2,494

Post » Fri May 23, 2014 6:47 pm

Use the distance expression. See the following example capx.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
68
S
26
G
4
Posts: 1,146
Reputation: 9,649

Post » Fri May 23, 2014 8:05 pm

Hi eli0s,

Thanks for the help!

John
B
19
S
4
G
2
Posts: 37
Reputation: 2,494

Post » Fri May 23, 2014 9:46 pm

You are welcome jlisenbyjr :)
composer - multimedia artist
www.eli0s.com/en/
B
68
S
26
G
4
Posts: 1,146
Reputation: 9,649

Post » Sat May 24, 2014 1:53 pm

Use Line of Sight Behavior
B
2
Posts: 6
Reputation: 162

Post » Sat May 24, 2014 2:41 pm

And an old way to do it is to create a invisible sprite that triggers the reaction (visible or non visible). However, I believe the other methods are more easy and direct ;)
B
8
S
3
G
1
Posts: 135
Reputation: 2,209

Post » Sat May 24, 2014 3:06 pm

Hi,
this is a sample tutorial how to make a trap, it's the same need
https://www.scirra.com/tutorials/1022/c ... form-games
2D Game GUI Designer
B
12
S
4
G
3
Posts: 130
Reputation: 3,778


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests