Turrest without rotation?

Get help using Construct 2

Post » Wed Aug 07, 2013 2:41 pm

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.
B
8
S
1
Posts: 16
Reputation: 503

Post » Wed Dec 11, 2013 10:08 am

@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?
B
17
S
3
Posts: 26
Reputation: 1,518


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests