Hey, I’m currently in the process of making a 2d platformer game and I’m having some trouble creating a pickup which will allow the player to access an inaccessible area. The basic concept behind it is for the player to pickup a ‘Key’ object which will then immediately cause a ‘Gate’ object linked to that specific Key to disappear, allowing the player to pass.
So as you can see here, I want to be able to pickup the “Blue Key” and “Red Key”, which will cause the “Red Gates” and “Blue Gates” to disappear and granting further access to the level. If possible I’d also like the Keys to be destroyed and everything to be reset (ie, reappear) after a set amount of time as well.
I’m not really sure where to begin, would anyone mind helping me out with the script (C#) or pointing me in the right direction?
