How do I make a FOV [PLatform]

Get help using Construct 2

Post » Sun Oct 05, 2014 1:58 pm

hi there!

i have been working on my project and its more of a night time dark game.

i need to know how i can make a see distance, like a circle around the player and that's all they can see.
If you know how i would really appreciate it.

thanks
B
3
Posts: 1
Reputation: 177

Post » Sun Oct 05, 2014 3:27 pm

The easiest way is with a big black sprite with a hole in the middle... : )
..set position to player.X
player.Y
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Sun Oct 05, 2014 3:42 pm

For a hide-ish effect, you could try maybe setting object visibility to initially be hidden, and when the objects are within the player's field of vision (using the LineofSight behaviour) to set the seen object to Visible. I'm not sure how to accomplish the field of vision effect, sorry. Maybe because it's 1:46am here, :P.
Founder of Jadelight Studio, Developer of Libertas Aedifex, regular C2 Help contributor and fan of ambient music and Star Wars.
B
12
S
4
Posts: 255
Reputation: 2,008

Post » Sun Oct 05, 2014 4:35 pm

Better way..


Spotlight.capx
You do not have the required permissions to view the files attached to this post.
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Mon Oct 06, 2014 8:44 am

Depends on how big your level is, for smaller games it'd work alright, but also note for performance reasons using a rather large sprite like that isn't recommended.
Founder of Jadelight Studio, Developer of Libertas Aedifex, regular C2 Help contributor and fan of ambient music and Star Wars.
B
12
S
4
Posts: 255
Reputation: 2,008


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Casaubon, farsen, mariusvm and 13 guests