Here is how I would go about grabbing an object in the game:
-
Firstly, i’d wanna place some sort of trigger event that highlights the object we are trying to grab. This makes it easy for the player to recognize it.
-
Secondly, i’d make a base class that allows for the player to grab the object. I plan on adding more rooms to the building escape game with even more objects to grab, which is why I opted for a base class.
-
Lastly, I want to have something similar to “IsOverlap” for the object and the pressure plate. Once they place the object in the right place, the door will open.
That’s about all I could think of and I’d appreciate any suggestions.