Attached object does not flip/mirror properly with

Discussion and feedback on Construct 2

Post » Sun Oct 09, 2011 10:39 pm

I'm having a hard time figuring this out.

So far this is what is going on:

I have a character sprite and an attack sprite. The parent sprite (character) has its origin point where I need the attack sprite to spawn. The attack sprite's origin point is all set as well. When pressing D - the attack sprite lines up perfectly as it should. But, when pressing A the attack sprite originates beneath the character sprite.

Controls:
A - Left
D - Right
Left Mouse - Attack

Here is the capx file:
herpderpus


I welcome any advice on top of provided solutions so that I may avoid making the same mistake in the future.

Thank you.ViLe2011-10-09 23:00:48
B
16
S
2
G
1
Posts: 20
Reputation: 1,284

Post » Sun Oct 09, 2011 10:45 pm

The link you posted doesn't work -- I'm guessing you meant viledeth.com/herpderpus.capx rather than scirra.com/forums/http//viledeth.com/herpderpus.capx?

I haven't had a chance to look at it yet, just letting you know about that first.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Oct 09, 2011 11:01 pm

All set lol ty.
B
16
S
2
G
1
Posts: 20
Reputation: 1,284

Post » Sun Oct 09, 2011 11:15 pm

Well... I was unsuccessful with fixing the problem, but I wanted to respond anyway so I wouldn't keep you hanging: I love the art you made here. The style really looks great.

As for, y'know, the problem... If no one else comes around to help you, the only thing I can suggest is a work-around. Basically, when the character is facing left, set the arm about 200 pixels higher or whatever it takes to line it up properly. It does work, technically, but you won't understand what the actual problem was in the first place. It's less than ideal, but it's a good back-up.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Oct 09, 2011 11:34 pm

Thank you for attempting and as for moving up a few pixels, I wanted to do this myself originally but wanted to make sure if there was something I missed.

Thanks for the compliment on the art!

For now, I'll move it up a few pixels but I would like the thread to be open in case someone else solves it.


BTW - Press T for a surprise (make sure you're next to a Ghast)ViLe2011-10-09 23:35:55
B
16
S
2
G
1
Posts: 20
Reputation: 1,284

Post » Sun Oct 09, 2011 11:40 pm

Haha, I noticed that in the code while I was looking through it. Gave me a good laugh -- the music was a good touch.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests