Hi. I am currently having a hard time setting an object's position based upon the value of a variable. This value contains the information of how much the player has moved a certain direction since last tick.
The object is a bullet constantly flying towards the player, however I want the bullet to move away from the player when the player runs towards the bullett in the exact same speed as the player is moving. All I need in order to be able to pull this off, is to apply a variable to a "set X", "Set Y" or "Set Position" event, but construct won't let me apply strings to these types of events. Any ideas?
Here's an image illustrating the problem: http://puu.sh/2nQmJ