Trouble with using constraint attributes

solomonsiu2000@gmail.comsolomonsiu2000@gmail.com Member Posts: 2
edited January 2014 in Working with GS (Mac)
Im trying to make a game thats like cartoon wars. Its where there are two bases, and each base must destroy each other. Both bases has the ability to spawn units. I want to make a certain units to stop and start shooting each other at a certain range. The problem is that if one unit reaches a certain range of the enemy unit, then all the units will stop and start shooting each other.

Tip: the main problem is that each of those units have the same constraint attributes

Comments

  • If u guys dont understand what i mean, then ill make it simple, I want a unit to stop and start shooting at a certain range individually.
  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2014
    Ok, I'm going to make lots of assumptions here as you've not told us anything about how your game is set up, but hopefully you can adapt this . . .

    If x position > than position of the base (+ range value) then spawn bullet.
Sign In or Register to comment.