I am trying to find a grid by doing simple addition to an index. In the example picture the current index is working. It is being set properly on the actor spawning. However, it is not adding correctly when trying to find the next grid to move to.
To give a bit more background. I am spawning an actor on a tile. This all works perfectly. When the actor is spawned the current index of the tile which is in an array is added into the actor’s bp. This works fine, the print string when the movement command is called is showing the correct index indicating that the actor knows what tile it is currently on. However, the issue starts when I try to move it forward.
To go forward you should take the current index and add 3. However, when doing this I get wildly incorrect answers. Commonly 13-15 when the actor is on tile 5.
Does anyone have any idea what is going on here?