Best way for a combat system

Get help using Construct 2

Post » Tue Jun 17, 2014 8:28 pm

Message: Berserky can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
So I am a bit stuck with my combat system. I have a few ideas but i dont know which is the best way to do it.
Combat is simple its melee. Player has a sword and on click he swings it.
I have 2 attack animations, one is a swing up, and then down. How do I make that when i spam my attack button that the animations repeat themselves (up,down.up,down...)
And how do I damage enemies. I have made a health system but do i create sprite which collides with enemies and then damages them or is there a better way?

This is what I have in mind.

http://www.google.hr/imgres?imgurl=http ... 0&bih=1099

Thanks in advance.
B
7
S
2
Posts: 102
Reputation: 975

Post » Tue Jun 17, 2014 10:25 pm

You could put the up and down animations in one called attack and loop it while attack button is pressed. As for health system. Just use an instance variable and subtract on each hit..
B
17
S
2
Posts: 29
Reputation: 779

Post » Wed Jun 18, 2014 6:49 am

Alright thanks.
B
7
S
2
Posts: 102
Reputation: 975


Return to How do I....?

Who is online

Users browsing this forum: JaredX and 9 guests