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
22
S
8
Posts: 26
Reputation: 1,544

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)
If you are looking for solutions and workarounds to the Windows 10 C2 performance issues feel free to reach out to me.

Following rexrainbow's lead - Goodbye.
B
50
S
24
G
14
Posts: 632
Reputation: 12,505

Post » Wed May 11, 2016 1:19 pm

hi tks it works
but the firerate for multi touch is very slow..
B
22
S
8
Posts: 26
Reputation: 1,544

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
311
S
128
G
101
Posts: 7,414
Reputation: 75,224


Return to How do I....?

Who is online

Users browsing this forum: SERGIOManOwaR and 3 guests