I use a square turret. I have the following code, but it does not work. What did i do wrong?
imgur.com/a/ehJUNE1
So what's wrong - does it turn? Does it fire?
Check turret properties - rate of fire, initial state, range etc.
Open the default template for turret (File-New in Construct and type Turret) and compare settings with your project.
dop2000 the problem is that it does not turn and fire neither .
If you want to learn about turret or anything else with C2 then check my link there is so much you can learn from;
cgpatel.co.uk
Develop games in your browser. Powerful, performant & highly capable.
nicmic
Well, like I said - check turret properties, compare them with the template. If this doesn't help, please share your capx.
are you assigning it a target?
facecrime yes i added it a target , i gave an imgur link with the code i used
dop2000 can the shape of the tower prevent it from rotating in the specified area?
Not unless you have other events or behaviors preventing this.
Why don't you just share the capx? We'll be able to tell you how to fix it straight away.
dop2000 how to share the capx?