How do I automatically aim and shoot at enemy

Get help using Construct 2

Post » Thu Oct 13, 2016 6:39 am

Message: kab can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I am trying to make aiming and shooting at enemy automatically on mobile.In case there are 2 or more enemy in window then i want the player to shoot at the enemy in front and then the user can tap to change which enemy to aim.i tried adding turret behavior to the bullet to get the aiming right in the first place but its not working as i expected.

capx-> https://www.dropbox.com/s/ke5ur3rks4s4cu3/workingdemolatest-improved.capx?dl=0
B
5
S
1
Posts: 32
Reputation: 389

Post » Thu Oct 13, 2016 4:34 pm

Try:

System -> Every Tick => Gun -> Rotate Towards Position -> [Enemy].X ; [Enemy].Y
[Enemy] -> Pick Nearest

(Replace the [Enemy] with the right object)
ImageImageImageImage
B
30
S
9
G
7
Posts: 244
Reputation: 5,600


Return to How do I....?

Who is online

Users browsing this forum: Norafaithrainbow and 27 guests