How would I create an Earthbound or Undertale styled interacting system?


Hi there, could I be given some pointers on how to create an undertale/earthbound-esque interaction system? What I mean by this is walking up to an object, pressing enter or a specific key, and having a text box pop up with some flavor text. Thanks in advance



Movement: 8-way movement -

For this to work you need to know if you are next to something you can interact with or not. A very simple way of detecting this is by using collision objects. The thing you want to interact with should have a collision object and your player character should have one as well. The simplest collision object is a trigger object. Example:

A text box can be created using the gui system. A box node for the popup background and a text node for the flavor text.



Thank you for your quick response!