A question about the turret behavior

Not favoritedFavorited Favorited 0 favourites
  • 2 posts
From the Asset Store
Add juicy impact to your game with a flexible, high-quality shake effect for sprites, text or the whole screen!
  • Hello Constructors !

    I have a question about the turret behavior. I'm using C3 with the R485 beta.

    The scenario: an object - a tank - is a container. It contains a tank body, and a tank turret. The tank turret has a turret behavior.

    Now, I create two instances of this tank object. One for the player, and one for the computer.

    But while the tanks are different instances, it seems to me that all turrets share the same comportament when I for example isolate a single tank instance and clear its turret targets.

    It seems that the "clear targets" command does not only clear the targets for that turret instance, instead it clears the targets for all the turrets with no regarding to the tank currently picked by UID.

    I wonder if my explanation is correct.

    In other terms, if I want to have two tanks, each with an indipendent turret (behavior), I have to create two different turret objects as well - for instance, playerTurret and computerTurret.

    In this case, if I clear the targets for the playerTurret, it should not affect

    the targets for the computerTurret. Am I right ?

    Thanks for your attention and have a nice day,

    Sergio

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Progress:

    using two different objects - both with the Turret behavior - works as expected. The turrets does not affect each other.

    So far, so good.

    Still, in my opinion the Turret behavior should be indipendent also by instances of the same object. Or at least, give the opportunity to set the behavior in that way.

    I find the Turret behavior really useful. If only were indipendent by different instances of the same object, would be indeed great.

    Thanks for your attention.

    Sergio

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