Hello. Is there someone willing to help me with a problem? I already asked this in another post, but that post I made was originally about a different topic and I started to feel that this topic needs it's own post.
I have a base vs base game, with some different minion types. Since I am aiming for "as many minions as possible/ still keep the game small enough to work", I have tried to find ways to keep active object amount as low as possible. One thing I was hoping to do is to use an active object for a minion, like "type1" for an example, and then use instances of that object as actual game units, but it, of course causes that dreaded instance vs instance problem.
I already got some really kind people to answers about the problem ( http://community.clickteam.com/threads/96174-Active-object-amount-limit/page2 ) of instance vs instance and got this:
>>> count each one of "type1", loop name "attack"
on each one of "type1", loop name "attack"
>>> place "detector" on attackrangeX,attackrangeY
>>> set detector ID to fixed value "type1"
>>> set detector "do_damage" to type1_attack_damage
>>> start loop "test detection" 1 time
on loop "test detection"
+ detector overlapping "type 1"
+ type1 fixed value <> detector ID
>>> sub do_damage from "health"
However, I have not been able to add player1 vs player2 layer to this properly, since the code already there causes all instances to attack all others except themselves. My tests with values, flags and other ways to determine player1/player2 status have resulted with all of them dying, none dying or some other half way there- solution.
Is what I ask even possible, is it possible on top of the code I already have, or is there another way to try this? I know I could try making type1_player01, type1_player02... objects and use those instances against each other to do this, but that would leave me with twice as many objects and really just put me back to where I started from? Also, if I choose to try player 3 and 4 with less minions overall, the solution will cause 4 times as many objects and will likely cause the game to get too large.
(Sorry, if this matter has already been answered elsewhere. I have found some post about this matter but none, which would exactly help me to make those silly minions attack as they should. Since many parts of the game, like harvesting, construction and such, are already working, I'd hate to fail with it just because I can't make my minions to attack properly.)