I'm making a game where the player has one overworld unit that moves around and can enter grid based battles in another scene that use the whole party, excluding the overworld unit. My game start event has the overworld unit join the active group, then leave the battle group, and hide member after that. In the grid battle, the first unit always has components for Character Controller and Player: Button Controller (disabled). This first unit will also get misaligned from the grid sometimes after moving.
It doesn't happen after every single move, but it only happens to the unit that gets those components.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Try adding a Wait node (e.g. 0-0.1 seconds) before enabling the components again.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The wait node seems to be working so far, thank you. I noticed that the movement also pauses for that .1 seconds now, then moves the last little bit to the center of the cell. In the Change Position node, I have it set to wait until movement is done before moving to the next step, so I'm not sure why the combatant is still in motion a couple nodes down the line.
Try enabling No Combatant Radius in the movement settings of the Change Position node.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
It's starting to feel like I just need a custom 2D control, but I'm not sure the best way to go about that. I see the how to guide on adding one to ORK, but that doesn't tell me what the script should actually look like and what it needs to include.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Thanks for all of your help. So far, so good, so I think this may have solved it.
In case you need anything done when this happens, you can do that in the OnEnable and OnDisable functions of your component.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!