{solved}How do I Modify Turret Behavior code?

Get help using Construct 2

Post » Fri Apr 04, 2014 7:36 am

Hi.

I need to change the way turrets work. They aim at imagepoint 0 but i want to specify the imagepoint it should aim towards manually.
Would this be possible to code easily as my coding skills are non existent.

Edit: I just set a helper object to the head and made the turrets aim at the helper instead of the player
Last edited by Ldk on Fri Apr 04, 2014 7:45 am, edited 1 time in total.
B
8
S
2
Posts: 163
Reputation: 1,115

Post » Fri Apr 04, 2014 7:41 am

First thought (not tested)

spawn a "target sprite" (invisible) on the imagepoint you want and pin it - then use this target sprite for the turrets to aim at ?
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Fri Apr 04, 2014 7:46 am

Thank RamPackwobble. Literally thought of that as i clicked submit topic.
B
8
S
2
Posts: 163
Reputation: 1,115


Return to How do I....?

Who is online

Users browsing this forum: David181, NECRONOMICRON, Yahoo [Bot] and 26 guests