How do I flip character in the opposite direction?

Just started using Construct 2? Post your questions here

Post » Sat Mar 01, 2014 10:01 am

I'm not sure if there is a tutorial on this so I apologise if there is.

I got my character bouncing up and down correctly (idle animation)

If I press on the left arrow key I want my character to face left. How do I do this?

Image
B
7
Posts: 17
Reputation: 346

Post » Sat Mar 01, 2014 10:15 am

You would use the 'Set Mirrored' action.

I would very much recommend Ashley's - or one of the other - excellent tutorials from the Tutorial section at the top of this page. It will cover everything you need to get going on basic platforming and animation.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,388
Reputation: 58,458

Post » Sun Mar 02, 2014 8:55 pm

You can set event: When left key is pressed ==> Set (Character) width: (the negative of the current width size)
ImageImageImageImageImage
B
56
S
15
G
5
Posts: 852
Reputation: 11,431

Post » Tue Mar 04, 2014 10:15 am

@Naji
Mirroring is easier than manually setting the width.
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Tue Mar 04, 2014 3:38 pm

Best is Mirror all you do is set Keyboard keys or mouse key like below
keyboard left keydown = myobject mirror or Mouse button click = Myobject Mirror
system else
myobject = notmirror
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623

Post » Wed Mar 05, 2014 8:56 am

Or you can also use an idle animation when left or right arrow is not used
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Sat Mar 08, 2014 2:35 pm

Try and learn from this demo I made for you
You do not have the required permissions to view the files attached to this post.
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest