Mirroring Attack boxes

Get help using Construct 2

Post » Mon Dec 31, 2012 10:40 am

This may be something simple, but I'm having trouble with it.

I have some attack boxes that I are in the perfect place when facing to the right, but how can I get them to the same spot on the other side when I face to the left?

Here is my capx:
https://www.dropbox.com/s/2h81lhsa2ux8y2v/Test2.capx
B
23
S
6
G
3
Posts: 122
Reputation: 2,922

Post » Mon Dec 31, 2012 10:52 am

The image points on your attack and player boxes were wonky.

Here's what I did:
1) Set your playerbox to mirror along with your character on turning left/right. This mirrors the imagepoints as well.
2) Created a new imagepoint for playerbox (imagepoint 1; you actually referenced it a few times without it ever being created) that was aligned on the ground and out a bit to the side.
3) Reset the attackbox origins to be at the center/bottom.

capx
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Tue Jan 01, 2013 12:17 am

Thank's Geo!

It took me awhile to understand what you meant by reset. I thought it was something you selected. It finally clicked. Thank's a lot Geo. I appreciate your help.
B
23
S
6
G
3
Posts: 122
Reputation: 2,922

Post » Tue Jan 01, 2013 12:49 pm

Sorry, that was probably the wrong word to use. I just meant "set", but I was thinking along the lines of the nine predefined image points (bottom left, centre, etc.) as they correspond with the num pad, so in a way it is something that's selected.
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Tue Jan 01, 2013 9:02 pm

Don't worry about it Geometrix. I'm just thankful that you replied and gave me the solution I needed. By the way do you have a game made that maybe I can look at? I'd like to see some of your work.
B
23
S
6
G
3
Posts: 122
Reputation: 2,922


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], jul, nicklowkcmagic and 15 guests