My question is simple yet it's got me wondering..I'm trying to limit my character's ActorLocation's X movement by checking it each tick. If it's larger or smaller than my desired value I set it back to my desired min/max.
I'm talking about a classical fighting game where I'm setting the "walls". I don't want to use actual walls as it won't let my character go to exactly my desired min/max.. Feels like a cheap way out, which doesn't work correctly anyway.
So I'm doing the tick-trick..
Am I being paranoid or this actually real bad practice? I feel like I might be tearing through CPU inefficiently and I would really want to avoid that.
I get that feeling especially because I'd be constantly getting and setting Y and Z for no reason at all. Since it's a fighting game I'd be doing it twice, too.
Many thanks in advance :)