Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I use a square turret. I have the following code, but it does not work. What did i do wrong?
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 .
Develop games in your browser. Powerful, performant & highly capable.
If you want to learn about turret or anything else with C2 then check my link there is so much you can learn from;
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?