Turret Behavior doesn't work if "Rotate" is to "no"

0 favourites
  • 7 posts
  • Problem Description

    I'm working on a tower defense game and I don't want to rotate my object, so I set the "Rotate" ability to "no".

    But with this setting set to "no", the tower doesn't shoot anymore.

    I also tried the "Turret Defense" template coming along with C2. Same issue there.

    Attach a Capx

    https://www.dropbox.com/s/cf6cvfpcwn0pm ... .capx?dl=1

    Description of Capx

    This is the "Turret Defense" example from Scirra. I just set the "Rotate" ability to "no" and the towers stopped working.

    If you set it back to "Yes", it works fine.

    Steps to Reproduce Bug

    • Download and run the capx
    • Set "Rotate" back to "yes"
    • Run it again.

    Observed Result

    Tower just shoots once or sometimes not.

    Expected Result

    Towers should shoot like before.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 10 x64

    Construct 2 Version ID

    r239

    Thank you!

  • Turrets take some time to shoot when they have a target in their range and view.

    If, during that time, the target moves out of the turret's view, the turret doesn't shoot.

    Rotating gives the turret more time to shoot.

    Try to put a turret on a section where the target moves horizontally for some time.

    (E.g. left of the second turning point of the path)

    You will see that the turret shoots there.

    The issue is probably the time it takes to calculate stuff for the turrets.

    This isn't a bug. You will probably have to switch rotate to "on", make the targets bigger or move slower or simulate the turret behaviour with "line of sight".

  • Try with "preditive aim" set to "no"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you, guys.

    I gonna try your suggestions But basically it should work the same without rotating the object, shouldn't it?

  • Thanks, should be fixed in the next build.

  • Thanks, should be fixed in the next build.

    Awesome! Thank you, Ashley.

  • Still doesn't work! please fix it.

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