Turrest without rotation?

0 favourites
  • 2 posts
From the Asset Store
In this template the music plays without looping in your game
  • I am making a tower defense game and need a turret that both does not rotate and shoots at enemies. Presently I am spawning a turret over my tower sprite so the tower does not move and the invisible turret rotates on top of it. This works fine but has lead to overcomplicated code to upgrade and track condition of towers as I have to relate them to the turret which they overlap. Any ideas on how to keep tower from rotating and still fire at enemies or how to "link" the tower and turret for upgrading would be greatly appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • juduncan Just put the turret in container with the tower. You can read up on containers in the manual.

    I on the other hand have a different problem with my TD game. I have a "laser" turret and I have a button that is supposed to lock it down. The problem is that if I lock it down before it takes its first shot then it doesn't shoot at all. Why is that and how can I fix it? I've tried both, the disabling of rotation completely and changing rotation speed to 0. Both fail. I've even had this "genius" idea that it can only be locked down after upgrading it one time but that doesn't guarantee that it's gonna take its first shot before it's upgraded. And tried to change it's rotation speed to 1 when locked down but then it just acts weird so I don't want to do that either. Can somebody please help me with this?

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