Hello. I am developing a mobile game. It is necessary that by pressing a button, the character moves along the floor in a certain direction, overcoming obstacles, until it reaches one of the points of interest. AddMovementInput only works with EventTick. Which is not very good. I need to move character until a programmatic cancel command is given.
It’s not like using tick event is not good at all. Event tick is very useful in certain ways. Indeed it cost performance but it won’t if you properly know how to use it.
The “pros” use it with flow control, so it won’t affect the performance that much.
Also disagree. It’s excellent this way. You do want to accumulate movement vector every frame for the most responsive controls - that’s the whole point of input! Even the tooltip suggests using it…
[…] the character moves along the floor in a certain direction, overcoming obstacles, until it reaches one of the points of interest.
Sounds like you need a navMesh and have the AI take over for the duration, or until the player interrupts it.