So I'm new to construct 2. I saw it years ago but have only currently started using it. So I'm kind of a newb. the answer may be obvious but it has eluded me for days.
I've got the following issue. I want the player sprite to rotate only when the mouse button is down. And since it's a platformer. I want to flip it when the mouse goes to the other side of the player to stop it from doing sommersaults. The problem being that when the code ends my image is sometimes flipped. sometimes upside down. sometimes it's the way it is supposed to be. But I have no clue how to make it so it is always in the right position.
code below, Any help would be appreciated