Right now I have my game set up to use the platform behavior until the F key is pressed and it toggles to 8-way movement. Its suppossed to give the effect of going from running to flying.
My problem is that sometimes when I switch to the "flying/8-way mode" the player will slide a bit to the left or right like they are snapping to a grid before moving normally. I figure I could live with making the player slide upward a few pixels to give it the look of pushing up a little bit when switching to flying.
I imagine I would need to find the current location of the player when the F key is pressed and then tell it to move upwards a few pixels. I'm not sure how to do that or if it is the best solution.
I'm kind of a noob so any help is appreciated.
You can go here to see the sliding that its doing: Superhero Test