Turret question

  • I have a space ship with non rotating turret. I need to shoot bullet from turret when target in sight with period of two seconds(1. on the pic).

    When i use turret behaviour with "Rotate:no" it shoots only when target zero imagepoint get on one line with angle of turret(2. on the pic)

    When i use Line of sight behaviour, its shoots without period. (3. on the pic)

    <img src="https://dl.dropboxusercontent.com/u/95062274/scheme.png" border="0" />

  • <img src="http://screenshot.su/img/bf/9a/da/bf9ada56fe28c254b2a20412a0aaa691.jpg" border="0" /> i tried some tricks but it didnt works

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If your turret doesn't turn, then the turret behavior won't be usable as you like it.

    The solution you tried seems like the way to go. I would just add a timer behavior on your gun. Your events then become :

    • first event : same triggers, actions being "set reloading to 1, start timer (Gun_Reload_time), spawn bullet".
    • second event : the trigger becomes "on timer run out on the gun", set reloading to 1.
  • Now it works fine, thanks a lot)

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