Find the project file here. This question regards the "InGame" layer and event sheet.
I am attempting to use the player sprite's Line of Sight behavior to trigger an action. In this case, just for testing, it should make the text "Snake detected!" appear on the screen:
However, this action is not triggering. This is a snapshot of the behavior's settings:
And here is a snapshot of the relevant event on the event sheet:
I have attempted the following to see if anything would help, but nothing has worked:
- Making sure the origin point of the snake sprite is in the middle for all of its animation frames.
- Making sure the snake and the player are on the same layer within the layout.
- Switching between "solids" and "custom" within the Line of Sight settings, just in case that made a difference.
No matter what settings I change, the action does not trigger.
I would appreciate any help on this matter!