Hack & slash combat system

For questions about using Classic.

Post » Sun Dec 02, 2012 4:24 pm

Hey guys ! I was looking through the forums, but I couldn't find anything helpful, so I'll have to ask:
-I'd like to make a Hack & Slash game, and I don't really know how to make the combat system, especially the aggro. The point would be that you could pick a target, and if he is in range, you hit him every X seconds. So I wondered if you could select a single ennemy to be that target, and change it when you click him.
Any help is welcome !
B
8
S
2
G
2
Posts: 15
Reputation: 1,691

Post » Wed Dec 05, 2012 7:07 pm

Up ?
B
8
S
2
G
2
Posts: 15
Reputation: 1,691

Post » Wed Dec 05, 2012 11:33 pm

You've already kinda answered your own question.

First you would check which enemy is selected, and store that in a variable. Then you would check the distance between the player and the enemy is withing striking distance. And if so, start playing a loop of the attack animation, and apply damage every X seconds to the selected target.



B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Sun Dec 09, 2012 2:06 pm

Yeah but can you store like a sprite in a variable ? Sorry I expressed myself badly I guess
B
8
S
2
G
2
Posts: 15
Reputation: 1,691


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests