How do I make bullet go to touch posisition?

Get help using Construct 2

Post » Wed May 11, 2016 10:42 am

i want make when i touch on the screen the player will shoot and the player's bullet wiil go to the touch posisition. please help me.
B
21
S
8
Posts: 23
Reputation: 1,513

Post » Wed May 11, 2016 10:53 am

On touch
---> create object (that is a bullet)
------> set bullet angle to to angle(bullet.x, bullet.y, touch.x touch.y)
B
46
S
20
G
9
Posts: 544
Reputation: 9,313

Post » Wed May 11, 2016 1:19 pm

hi tks it works
but the firerate for multi touch is very slow..
B
21
S
8
Posts: 23
Reputation: 1,513

Post » Wed May 11, 2016 5:22 pm

Check this video from the C2 academy to see how to build a firerate.

You will want to adapt it so that the touch is the triggering event.

If you have further issue, consider posting your capx to see how you implemented things.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,328
Reputation: 71,298


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 5 guests