Move object relative to its current position

I want to create a game where the user can click up/down/left/right to make a shape move accordingly based on its current position. In the first step I added 4 move triggers with straight line motion path in all four directions. This allows the shape to move in the required direction once. But I am not sure how to make it move the second, third, fourth ... times considering that the number of possible starting positions go up exponentially with each proceeding turn. Does anyone have any idea of an easier way to make it possible?

I am not good with java script so any other way to make this happen?

2 Replies