How do I make a hitbox on my sword

Get help using Construct 2

Post » Tue Feb 10, 2015 11:18 pm

hey so i animated a sprite in spriter pro, and i set position of a green box within the slash of my sword for a hit box but i only want this box to appear when i hit the attack key and then have the box leave, that way anything that collides with this box is damaged

i'm streaming on twitch.tv/gusnation anyhelp here and or in my stream would be much appreciated
B
10
S
1
Posts: 97
Reputation: 700

Post » Wed Feb 11, 2015 12:14 am

You can enable the box collision when hit then disable it.
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Wed Feb 11, 2015 1:52 am

i'm trying a different method at the moment , still having trouble
B
10
S
1
Posts: 97
Reputation: 700

Post » Thu Feb 12, 2015 6:18 am

I figured this one out , in my Spriter Pro character attack animation i made a hit box within the animation , a feature i totally forgot about in the program and then when that box collides with enemy it gets destroyed . Problem Solved!!!
B
10
S
1
Posts: 97
Reputation: 700


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Cool Gamez, marcoscodas, Yahoo [Bot] and 11 guests