I'm trying to set up an event when on a key pressed, my side-scroller character will slide out of the way of attacks to avoid damage. The two options that seem to be the best options for this is Platform > Set Vector X, or simply Size and Position > Set X> Neither seem to work the way I would like though.
With Set Vector X, it only sets the motion for the instance of the keypress, so whether I set it to 600 pixels or six million, it only goes the amount of distance the time the key is pressed allows.
With Set X, it instantly teleports to the new location. I figured I could lerp it from the current position to current location + the teleport distance, but I have no idea what to call to access an object's current location. Looking in the manual didn't seem to have any info on it.
SO I'm totally stuck. Any help would be greatly appreciated!