OnScreenTrigger - 3 regions 3 timing - one event

Subscribers:
64
Published on ● Video Link: https://www.youtube.com/watch?v=CIc94gevW8w



Duration: 0:00
13 views
2


How does it work:
a "on screen notifier" activates a loop in that fiers a ray cast to find the player model (rotates to the active viewport camera) so we can have a check for a sightline beteen player and trigger. Now the position of the trigger is checked in 3 regions:
the instant region in viewport center fires the signal immediately
the inner ring waits a 2 seconds time in video
and the outer ring fires the event in 10 seconds

if the trigger is started and more then 2 seconds the trigger get shortend
and if the player starts looking at it in the center the event also fires without delay. Perfect for a horror walking sim or events in style of half-life 2.

A "on screen notifier" alone was not able to check alone if it was on screen and not hid behind other objects (like walls).




Other Videos By TheRealBlackNet


2025-07-07Fly test or is flying without friction fun??
2025-02-07Is godot good for 3D? No, you need 2D nodes and a shader and raycasts... so much work //Sarcasm
2024-12-31OnScreenTrigger - 3 regions 3 timing - one event
2024-07-20Reconnect the internet! #kenneyjam Manual Request Handling.
2024-05-26#godotengine - Learning #Godot - FPS Toolkit - Item Interaction
2024-03-27If #godotengine only would have cone area shapes...
2024-03-22#godotengine - Learning #Godot Test - Pickup and Throw on github
2024-03-17#godotengine - Learning #Godot Test - Pickup a box makes me fly...
2024-03-16#godotengine - Learning #Godot Test - Buttons display and overview on the object zoo.
2024-03-11#godotengine - Learning #Godot Test - valves and drop gates
2024-03-03Learning #GodotEngine - Shader lookup and Shadow Expanded
2024-03-02#godotengine - Learning #Godot Test - #Lidar - Better Shader - 40.000 Points+
2024-03-01Learning #GodotEngine - Shader Color By Distance from Camera
2024-02-29Learning #GodotEngine Test - Shaderfail
2024-02-28#godotengine - Learning #Godot Test - #Lidar exe or #ScannerSombre
2024-02-24a Kenney.nl screensaver idea made in #godotengine
2024-02-22Learning #Godot Test - Bullet Physics (Fail)
2024-02-18Learning #Godot Test - Item Pickup and Throwing - Pushing items
2024-02-14Help - How to set rotated\flipped tiles in a #godot Tilemap? And how to get rotation?
2024-02-10Learning #Godot Test - #Thief Magic Particles
2024-02-10Learning #Godot Test - Thief Water - Particles