How do I mirror a sprite?

Just started using Construct 2? Post your questions here

Post » Sun Jan 18, 2015 6:00 am

I have been working on a freefall game - very basic, you just fall and try to avoid stuff.
I used the SET TO MIRRORED when pressing left key command, but it's not mirroring once I test it.

Any advice?
B
5
Posts: 38
Reputation: 301

Post » Sun Jan 18, 2015 6:35 am

A mirrored sprite has a negative width, so you can just do Width = Width*-1
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sun Jan 18, 2015 4:10 pm

@somebody

It's not working =/ I tried this (picture) and it's not "turning" left.

I had done this in a previous project and for some reason now it's not working.
You do not have the required permissions to view the files attached to this post.
B
5
Posts: 38
Reputation: 301

Post » Sun Jan 18, 2015 4:16 pm

You are setting the width towpath MINUS 1, what you need to do is width * -1
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sun Jan 18, 2015 4:43 pm

@somebody

I tried it like this (picture) and it didn't work. I also tried creating a specific animation for "left" and it didn't work either.
I'm running out of ideas.
You do not have the required permissions to view the files attached to this post.
B
5
Posts: 38
Reputation: 301

Post » Sun Jan 18, 2015 5:22 pm

Actually, if you are using the platform behaviour you should just check out the Platformer template that comes with C2 (it's available under New). That should help you with getting this right.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sun Jan 18, 2015 5:29 pm

So set set mirrored and set not mirrored doesnt work?
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Sun Jan 18, 2015 6:59 pm

@somebody

This is ridiculous...I had to use the platformer template like you said - BUT IT'S THE SAME I HAVE ON MY OTHER PROJECT.
It just makes no sense, but at least it's working. Thank god I will only have to rewrite the Menu layouts and that's it.
B
5
Posts: 38
Reputation: 301

Post » Sun Jan 18, 2015 6:59 pm

@thewyrm

It didn't, and I don't know why.
B
5
Posts: 38
Reputation: 301


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests