I am playing arround with a dungeon crawel like game where I want to move the player like a pan on a chess game by an exact number of units in a raster.
Therefore I use the “MoveComponentTo” method in my blueprints to move my character.
I did not find out, why no collision/overlapping events are fired during the move of the character.
Exactly. If i push the player by force, then everything is ok and the player is blocked by the walls. Therefore I know that it’s a matter of the ‘moveComponentTo’ But this method is not good for me because I need to move the player exactly 200 units into any direction.
Do you have any Idea how I can make sure the player does not leave the grid?
I’d suggest using a timeline. On the update, move the character in the appropriate direction with a regular SetActorLocation (or component, whatever) with sweep enabled. Check if there’s a blocking hit and stop the timer if there is.