Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Modularity and Triggers

Author: Mike McGoveran
The Problem. 
We have many situations where objects within our dynamic rooms need to talk to each other within certain conditions.  However objects in the scene are duplicated and there isn't a good way to find or set references to the objects without running the risk of getting a false match from a duplicate room.   Furthermore Triggers need to be modular and will, at times, need to talk to multiple objects on the same trigger.

The Solution.  
I found that as long as the trigger and the component the trigger needs to talk to are children just under the rooms root scene component and I utilize int ID's I can manually match at runtime without failure.  This allows me to trigger multiple doors lights and spawners with any combination of  triggers.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.