Is like a pendulum, the object has gravity, when it begins to rotate to the right, a button applies force to the opposite side, and so on. The position in the picture must have a value of 0, and the limit on the red line value 100 to one side and -100 to the other side. when the game time runs out, will trigger a specific event depending on the position.
How can i do a variable with those values? At 20 lauch an event, and so on diferent events depends on the value.