The Daily Click ::. Forums ::. Klik Coding Help ::. Help me whit this thingy... F (EVENTS F)
 

Post Reply  Post Oekaki 
 

Posted By Message

Zodemon



Registered
  29/05/2008
Points
  4
25th August, 2008 at 16:25:01 -

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

E: im using mmf2 k?

Image Edited by the Author.

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
25th August, 2008 at 17:01:13 -

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!

/EE

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
25th August, 2008 at 17:14:09 -

Yes, I was going to say I didn't understand your post either. O_o


Are people who talk like that the same kind of people who shell out over one hundred bucks to get MMF2?

 

  		
  		

Zodemon



Registered
  29/05/2008
Points
  4
25th August, 2008 at 17:19:58 -

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

E: im using mmf2.

 
n/a

traugott.simon



Registered
  23/08/2008
Points
  91
25th August, 2008 at 19:53:41 -

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.

 
n/a

Zodemon



Registered
  29/05/2008
Points
  4
25th August, 2008 at 20:17:50 -


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.


i dont know how use fastloops :F

 
n/a

Zodemon



Registered
  29/05/2008
Points
  4
26th August, 2008 at 19:43:49 -

anybodyy?? :| i realy need help

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
26th August, 2008 at 21:25:15 -

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.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click