so.. i have treid to get answarer to this bug over half year... mah bug is:
TOWER DEFENSE SHOOTING TOWER TARGET THINGY...
im using ALWAYS -> tower1 - set alt z to:
Sqr(((X( "creep 1" )-X( "tower1" ))*(X( "creep 1" )-X( "tower1" )))+((Y( "creep 1" )-Y( "tower1" ))*(Y( "creep 1" )-Y( "tower1" ))))
and if alt z is lower than 200 -> aim and shoot lold
so... it aims THE LAST ONE IN THE RANGE >_< + if ther is sum on end it will shoot them (ONLY THAT TOWER WHUT HAS TEH ENEMY IN RANGE SHOOTS K?) BUT if ther is comin new ones in spawn place (we are on end place whit towers on start n end place) the endplace towers STOPS SHOOTIN (:F)... so does anybody know WHAT I SHOULD DO
and plz... dont maek this flamewars liek the MFGG users maked :C
Ok.
I would really like to help you out since I'm a fan of TD-games, but I can't understand half of what you're saying. To many abbreviations (I think it's called that anyway) / chat language, and please don't use "maek" if you want to be taken seriously. Re-post your question in a manner that people (me) can understand, don't just mash in all thoughts and frustrations in one big eye-sore. Thank you!
NOT IN "CHAT LANG (lold):
So.. i have tried to get answarer to this bug over half year... my bug is:
tower defense shooting tower target thingy.
i'm using event: ALWAYS_> tower1 -> set alt. z to:
Sqr(((X( "creep 1" )-X( "tower1" ))*(X( "creep 1" )-X( "tower1" )))+((Y( "creep 1" )-Y( "tower1" ))*(Y( "creep 1" )-Y( "tower1" ))))
and if alt. z is lower than 200 -> aim and shoot (tower1 to creep 1)
so.. it aims the last one in the range >_< PLUS if there is some on end it will shoot them (only that tower what has the enemy in range shoots) but if there is coming new ones in spawn place (we are on end place whit towers on start and end place) the endplace towers stops shooting (:F)... so does anybody know what i should do?!
and plz... dont make this flamewars like the MFGG users maked :C
I guess, the tower stops shooting, because he canīt use the target routine for every enemy. Call it a "bug" in mmf, but you have to use fastloops for things linke that. With a fastloop, every enemy ist checked for being in range. With your programming, the tower only shoots at the last created enemy.
Originally Posted by traugott.simon Well, i am not sure, if i did understand you now.
I guess, the tower stops shooting, because he canīt use the target routine for every enemy. Call it a "bug" in mmf, but you have to use fastloops for things linke that. With a fastloop, every enemy ist checked for being in range. With your programming, the tower only shoots at the last created enemy.
That condition will only apply to 1 creep1 object, so you need to run a fastloop through each of the creep1 objects. I suggest you look up what the fastloop object does and how it can help you.