I am trying to get a basic dialogue system using line trace set up but I am reaching a few hurdles that I can’t seem to get past. My main issue currently is that my line trace is only firing while moving and I am not sure why.
A basic breakdown of what I have so far is a line trace that fires on F press, that checks if the player is within the collision box of my dummy character called “talkBlueprint”, if it is it will disable movement and bring up a dialogue widget, then a second press will remove the widget and re enable character movement. However, these functions only fire while my player character is moving.
Does anyone have any ideas on how to solve this, or alternatively any medication/zen like states I can reach to stop my head from blowing up while trying to construct a dialogue system?..
This is for a non-rotating Paper2D character that only swaps flipbook when you change direction and doesn’t draw any vectors indicating direction (think top down RPG). The solution is below in post #7 for anyone who has a similar set up and is trying to get line traces working for a dialogue/battle/interaction system.