How do i stop my character getting flipped?

Get help using Construct 2

Post » Mon Jun 27, 2016 3:34 pm

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:Image

Character facing leftImage

Capx: https://www.dropbox.com/s/67vhyg9zvp3stxo/blue%20bellied%20birdie.capx?dl=1
B
4
S
2
G
1
Posts: 7
Reputation: 996

Post » Mon Jun 27, 2016 4:14 pm

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.
Freefall Bird
B
47
S
9
G
5
Posts: 280
Reputation: 5,796

Post » Mon Jun 27, 2016 4:52 pm

Ragevortex wrote: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.


This is a good idea but i still want the smooth 360 turning. Is there anyway to make this happen without the sprite flipping?
B
4
S
2
G
1
Posts: 7
Reputation: 996

Post » Tue Jun 28, 2016 1:14 am

+------------------------+
| Compare angles|_______________________
| Object is between 90 and 270 degrees | Object Set flipped
+-------+------------------------------------------------+
| Else | Object Set not flipped
+--------+


~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Tue Jun 28, 2016 1:31 pm

SoldjahBoy wrote:+------------------------+
| Compare angles|_______________________
| Object is between 90 and 270 degrees | Object Set flipped
+-------+------------------------------------------------+
| Else | Object Set not flipped
+--------+


~Sol

Thanks this worked perfectly!
B
4
S
2
G
1
Posts: 7
Reputation: 996


Return to How do I....?

Who is online

Users browsing this forum: oosyrag and 29 guests