How do I get an object to shoot at a player that can also shoot?

  • I would like the UFOs in my game to shoot at my player. My player also shoots. Is there a problem with this; can I only have one thing shooting at one time? If this is possible, how should I go about doing it? Which events could be used to make my UFOs shoot and kill my player? Right now, their only behaviour is bullet. Thanks if you can help.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I guess you will have to define more precisely what exactly "only have one thing shooting at one time?"

    The action of shooting, is when the projectile is spawned.

    It is likely that already currently your two different objects are not "shooting" at the very same time according to this definition.

    So are you rather looking to only have a projectile at the time on screen (which would mean that only a single entity was allowed to create a projectile, and as long as the projectile is on screen, no entity can shoot again) ?

    Clarify this point, consider possibly providing your existing project to allow more accurate investigation and you should get an accurate answer to your problem.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)