How to implement Swords & similar weapons?

Get help using Construct 2

Post » Fri Dec 23, 2011 3:30 am

Hi
Im trying to create a platform game where the player defeats his enemies with a sword or a similar kind of weapon however Im having trouble figuring out an approach that works, so I just wanted to find out how other people have implemented sword based attacks effectively in their own games?

Any help would be appreciated
thanks
B
5
S
1
G
1
Posts: 52
Reputation: 1,222

Post » Fri Dec 23, 2011 3:42 am

How i did it in my game:
My character is composed from body and arms. Arms move independently from the body. Each arm animation has a image point called "SwordGrip" . Of course i have a sword sprite. The sword moves attached to the "SwordGrip" image point. The origin point of the sword is on the base of it. So every tick i do sword set position to object Arms on image point "SwordGrip". The arms are set mirrored when the body is mirrored and so is the sword. That's the basics. The sword is attached to the arms like i said but it rotates independently. This way i can make different sword movements. And for collisions i have tiny collisors attached on determined points of sword. It's basically this . On my games it's a little more complex. It takes some work. Of course it depends on what you want to do, and your skill level. If you want i can make a detailed tutorial on it later. Kiyoshi2011-12-23 03:44:18
B
58
S
13
G
10
Posts: 632
Reputation: 12,505

Post » Fri Dec 23, 2011 10:17 am

I'd be interested in seeing a tutorial on this!
B
15
S
2
G
5
Posts: 30
Reputation: 3,895

Post » Sun Dec 25, 2011 10:15 pm

I as well would like to see a tutorial, plus I would think it would be a good resource for others as well.
B
16
S
3
G
5
Posts: 43
Reputation: 3,875

Post » Mon Dec 26, 2011 12:23 am

Thanks. I'll do the tutorial tomorrow then. Been chillin a bit these holydays :DKiyoshi2011-12-26 00:23:47
B
58
S
13
G
10
Posts: 632
Reputation: 12,505

Post » Mon Dec 26, 2011 2:10 am

Thanks, can't wait!
B
15
S
2
G
5
Posts: 30
Reputation: 3,895

Post » Mon Dec 26, 2011 8:21 pm

The tuto is done. It's a bit large so there must by typos/errors. Let me know of anything strange or any questions :D
B
58
S
13
G
10
Posts: 632
Reputation: 12,505


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 16 guests