Oh yeah! Geez I'm tired, that was a really stupid mistake, sorry. Of course the line should have been :
I'm thinking something like
then something similar for if velocity.x/y < 0, etc. etc.
Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.