Mouse orientated movement in AS3?
I need help with something.
basically, i'm attempting to make a platform game, i know how to move left and right with the arrow keys, but that's quite boring.
i want to move my character based only on the x movement of my mouse. the more i move my mouse in a certain direction, the faster the character moves in that direction. i've been trying to modify the x-speed on my character based on a x value of the mouse, but nothing is working.
preferably, i want a code that keeps my cursor at the center of the screen, while still being able to detect x movements of the mouse.
i'd copy paste code from my program, but i'm fairly confident that doing so will serve no purpose. i need a new direction. i have no idea how to do this.
any help is greatly appreciated.
