Hi,
I am a beginner in C2.
I am creating a prototype with 8 characters to be controlled by keyboard and gamepad on the same computer. Each character has a set of stats due to which the attack/damage value changes.
Right now the problem I am having is that I want to check which character attacked which character so to subtract health according to the stats of the 2 characters.
Right now for 2 characters it is something like this:
https://drive.google.com/open?id=0BwybgTYLYob0TzE1aEdfZzhsVzQ
As you can see it is very basic and the problem I will have when I need to implement 8 characters. I do not know how to create custom classes or would creating an array would be better for this. But I have to check the colliding object/character too at the same time and then subtract from its instance variable of HP.
Any help and tips would be highly appreciated
Thanks!!