I'm currently making a first person game in BGE. I animated an action for the camera of slowly going up and down to make the walking more realistic. I added it to the player's logic, but instead of moving forward, the player moves a small distance from the spawn point, and then immediately goes back.
I thought that maybe this happened because I added a keyframe for all the axes, and I could just add a keyframe for the Z axis. But then I thought that this could malfunction if I was on a different height level, because it would just bring me back to the original level.
So a way to do this would be to just add a number to the coordinates of the player, but I couldn't find anything on how to do that, and don't even know if it's possible.
How will I add a number to coordinates, no matter what they are, and how do I make it a keyframe?
.blend file:
+1
behind the value? Inserting a Keyframe can be done by hovering over and pressingI
. $\endgroup$