So I started making a new game with a bird controlled with 8-direction. Whenever the bird starts facing left it becomes flipped I have been trying to figure this out, changing animations, using flipped events and none of it worked well.
Character facing right:
Character facing left
Capx: https://www.dropbox.com/s/67vhyg9zvp3stxo/blue%20bellied%20birdie.capx?dl=1
Check the properties tab when you select your sprite. You can change the "set Angle" so that it doesn't change the angle of the sprite(set it to NO). then change your sprite by code instead of automatically.
Develop games in your browser. Powerful, performant & highly capable.
This is a good idea but i still want the smooth 360 turning. Is there anyway to make this happen without the sprite flipping?
+------------------------+
| Compare angles|_______________________
| Object is between 90 and 270 degrees | Object Set flipped
+-------+------------------------------------------------+
| Else | Object Set not flipped
+--------+
~Sol
+------------------------+ | Compare angles|_______________________ | Object is between 90 and 270 degrees | Object Set flipped +-------+------------------------------------------------+ | Else | Object Set not flipped +--------+ ~Sol
Thanks this worked perfectly!