A lot of requests for me to make this video on how it was made, I hope you find it useful and let me know if you'd like to see anything more in the future! :) 🔥Unity Sales: bit.ly/UnitySalesHub 🔥SpeedTutor Unity Store: bit.ly/STUnityStorePuzzlePacks 🔥HUMBLE SAVINGS: bit.ly/5500PolygonAssetsBundle
@BadBanana Жыл бұрын
So I surmise you've created a class and a struct, Similar here, I did this for my second game I released and this worked out lovely. Created a class called iInteractable Then structure built into player movement When center of screen raycast touches object mesh Checked to see if mesh has class in its structure. This in a coroutine closed off from the rest firing somewhere to the tune of every fourth of a second. Each object cam have the structure attached via iInteractable either as a custom script I built with editor references and edit possibilities, or added after monobehavior in preexisting scripts The referencing in the editor on each object that's interactive has sections for the ui name displayed Which simply changed a text solutions output to the desired new text rather than having loads of texts in an object and turning them off and on It also had referencing for things like cost of operation Delay Sound clip to play on click etc I was very proud of the system and turned it into all sorts ingame Doors. Wall buy guns. Repairing windows. Vaulting. Ladders. The Bad Banana power up. You get the picture Could have easily had some keys pertain to doors with checks using the same system just adding a new reference in the script. Yes very good my mate Very good
@SpeedTutor Жыл бұрын
Oh awesome, man! How long did it take you to create your system? Do you plan on expanding on it, or is it already fully featured as you'd like?
@BadBanana Жыл бұрын
@SpeedTutor well.. it was about 5 years ago and only my second full game release so it took me close to two months to write out. But I was learning still and made a lot of mistakes and errors I'd probably rewrite the entire system nowadays in likely a week or so, more scaleable and for sure I'd segregate it so It can be used in multiple projects.
@AstralNostalgia Жыл бұрын
you can use this approach to combine with a random loot genrator, if you open the door you can loot props , like the elevator action retro game.
@SpeedTutor Жыл бұрын
You definitely could, thanks for the great suggestion! :)
@AstralNostalgia Жыл бұрын
@@SpeedTutor it is more interesting to make abstract thngs with doors, behaves like a loot system like old retro games where they focus on the maximun mechanics... I meat, those days have not any sence to create a door and behave like a loot chest, but for the core of the abtraction and polymorphism or interface it is cool challenge.
@thatsjustfunny1 Жыл бұрын
Glad you're back to making tutorials!
@SpeedTutor Жыл бұрын
Thanks man, I hope you found it useful! :)
@Mr_BreadMan Жыл бұрын
Awesome work! Will this be added to the Adventure Puzzle Kit Pack?
@SpeedTutor Жыл бұрын
You're exactly right! I will! :)
@a.technology1446 Жыл бұрын
always we got something usefull from ya Matt , Thank u ..
@SpeedTutor Жыл бұрын
You're very welcome, my dude! :)
@alec_almartson Жыл бұрын
Really Cool! Thank You.
@SpeedTutor Жыл бұрын
You're very welcome, thanks for watching!
@alec_almartson Жыл бұрын
@@SpeedTutor by the way, I really like your approach for optimizing and perfecting the Tool working in Collaboration with ChatGPT (I work in a similar way). I think I will use your Door System in my future game Prototypes (FPS and 3rd Person - an Adventure Game), giving you the Credit for this Tool, of course.
@GasDudes Жыл бұрын
I’m ready when you are….we could make a pretty epic prison style game together Matt! 😂
@SpeedTutor Жыл бұрын
Haha, what's the idea?
@FarwalDev Жыл бұрын
I was implementing something like this in my horror game, with Coroutine() but I was having problems with the cabinets and this comes JOYITA :3 thank you very much as always.
@SpeedTutor Жыл бұрын
You're very welcome! :) I hope you get it functioning how you want! :)