Bone Behavior Mirroring Problems

For questions about using Classic.

Post » Tue Jun 21, 2011 8:45 pm

I've been using Construct for a couple years now but I'm still not to familiar with the more complicated aspects of the program and can't for the life of me fix this problem i've been having recently. The game is going to be a side scrolling shooter with zombies and I've decided to use the bone behavior for the majority of the animation.
I have a the arms following the mouse and the animations play fine when you fire or reload, but the main problem is when i move the mouse behind the character the bones dont mirror correctly, the same happens if i flip them instead.
The setup I've got is a Sprite(lets call it sprite 1) that follows the mouse at all times and the Sprite with the Bone Behaviour(lets call it sprite 2) sets it's angle to sprite 1. When Sprite 1s angle is greater than 90 but less than 270 then mirror sprite 2.
I may not have worded that to great so I'll include a cap.
I would really appreciate it if anyone could help me out in any way.

http://dl.dropbox.com/u/33102720/bonegungreen.cap
B
4
S
1
G
1
Posts: 5
Reputation: 1,260

Post » Wed Jun 22, 2011 7:50 pm

Just add a action to event 4 when the bones are mirrored to invert the angle as well.

-> bone: Set angle to 360-MouseAim.Angle

Cool rig btw.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Wed Jun 22, 2011 9:24 pm

Thank you so much I've been trying to fix that for a couple days now and i never thought of doing that :lol: . Thanks for the compliment, this rig was just to test animation mirroring. The actual rig I'm using has a lot more detail in the animation.
B
4
S
1
G
1
Posts: 5
Reputation: 1,260


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests