How to make sprite face the way it is moving

Hi, I tried making a sprite face the way that it was going and it worked, but I could not get the sprite to face diagonally.
I tried making it say when pressing w and d then it would face the top right, but that didn't work.

this should help?
I'm helping someone

I already have that. My problem is that I cant get it to face diagonally when I press 2 buttons.

i had that happen to me once too
i haven't quite figured it out yet but i'll tell you if i do

Ok thanks

What about something like this:
untitled script pic

that might work

thanks it worked! All I did was change the (when w key pressed) to (when {w key pressed})

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.