Hi! I have created a description of objects in my world using types/instances. I now want to link objects together (ie button A will reference door D and execute its move code) so I can set up behaviours between objects.
So when I have created an instance of each type, how do I go about this?If I create 'button A', do I create a pointer to Door D, or is just a case of naming Door D directly within Button A (and just have an interactor field within the button type)? Apologies if this is an obvious question, I'm getting to grips with OOP and Blitz and I'm always a little worried about getting into bad habits.
Thanks for any help as always
So when I have created an instance of each type, how do I go about this?If I create 'button A', do I create a pointer to Door D, or is just a case of naming Door D directly within Button A (and just have an interactor field within the button type)? Apologies if this is an obvious question, I'm getting to grips with OOP and Blitz and I'm always a little worried about getting into bad habits.
Thanks for any help as always