Hello, I gave the behavior line of sight to my player to not see through the walls the enemies, for the enemies it works very well, I see them that when it is in my line of sight, the problem I have that I created a heart-shaped bonus, a heart represents a life, the bonus object sometimes I see it through the walls sometimes they are invisible, I do not understand why sometimes I see hearts through the walls while the enemies remain invisible??? I put you the code,
+ System: Each tick
-> Enemies: Set opacity to 0
-> life: Set opacity to 0
-> Score: Define the text to "Score" & Score
-> Life: Define the text to "Life" & player.ViePlayer
+ player: A LineOFMire on Enemies
-> Enemies: Set opacity to 100
-> life: Set opacity to 100
-> player: Add the wall obstacle to LineOfSight
if you ever need more details I put a link to the game, thank you in advance for your help.
dropbox.com/s/jwzrzb3iddpz3s6/FunShooter%20%282%29.c3p