Pin object question

Get help using Construct 2

Post » Mon Apr 01, 2013 2:23 am

Hey guys!!! So far I am getting alot of progress with my game, thanks to you guys help :)

So, I got up to the point that I dont know if is possible to make.

I was able to pin a object (a sword) to my sprite (char). When my char is walking the sword pin is just fine. I used Player.ImagePointX("weapon").

But this works fine because my weapon has only one frame, I mean, its just a weapon pointing lets say 45 degrees.

When my char use the attack animation, this very char will have his hand in three positions, up, mid and finish the slash with the bottom position, so the sword in its hands will have 3 different sprites.

So that is my problem. How can I pin this attack with this sword? Is that possible to create?

If more details is needed I can send my capx.
B
8
Posts: 24
Reputation: 985

Post » Mon Apr 01, 2013 4:07 am

You need a Image Point on the player for the sword, and for it to be assigned for each frame of the animation. I'm not a good drawer, but this stick figure should show you what I mean.

http://dl.dropbox.com/u/108799982/Capx%20Demos/Sword.capx
Using R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125

Post » Mon Apr 01, 2013 9:53 am

[QUOTE=emoaeden] You need a Image Point on the player for the sword, and for it to be assigned for each frame of the animation. I'm not a good drawer, but this stick figure should show you what I mean.

http://dl.dropbox.com/u/108799982/Capx%20Demos/Sword.capx[/QUOTE]

Thank you for help!!! This result is what I got here, but lets say you need each hand position you made, you have a diferent image of this sword.

Something like this:


You see that player hand start at top and goes down? For each of these 3 frames the axe it uses has diferent images.

I am not sure If I can make it, is there a way to do it?

Thanks!!
B
8
Posts: 24
Reputation: 985


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 31 guests