How do I design battle system.

Get help using Construct 2

Post » Mon Oct 12, 2015 12:06 pm

Hello cleverest developers.

I have been making rpg game with Construct 2.

So, I need a battle system with using families called enemies.

My question is how to process death of enemies respectively.

it's my attack process.

Image

Thank you for reading.
B
4
Posts: 16
Reputation: 232

Post » Mon Oct 12, 2015 3:41 pm

Might need to use the individual objects rather than a family. Looks like you are calling them all rather than the one you touched.

Might pass the UID to the function in a perimeter so you can pick the one you clicked on. Can also pass the click location and compare the nearest family object to the click.
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Mon Oct 12, 2015 10:14 pm

jojoe wrote:Might need to use the individual objects rather than a family. Looks like you are calling them all rather than the one you touched.

Might pass the UID to the function in a perimeter so you can pick the one you clicked on. Can also pass the click location and compare the nearest family object to the click.


Could you show example?
B
4
Posts: 16
Reputation: 232

Post » Mon Nov 02, 2015 5:29 am

Id like to know as well im stuck on this part I think he means the Add parameter in the on call function.
B
52
S
24
G
6
Posts: 391
Reputation: 7,845

Post » Mon Nov 02, 2015 11:53 am

Functions do not pick any instance, So you would have to put the health deduction events right below the tapping trigger
-> On Tap gesture on enemies
--> Substract HP
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,471


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests