How do I move AND slash using bullet?

Get help using Construct 2

Post » Tue Jun 28, 2016 2:47 pm

Hi, sorry if this topic have been asked before. I just can't find the proper search term to get more info about it.

How do I incorporate a move and slash using bullet for a top down game? I have a sprite hero wielding a sword.
- On single tap gesture, hero sprite move to position x and y
- with the double tap gesture, he bullets (runs) to enemy sprite and destroying them.
B
28
S
11
G
15
Posts: 47
Reputation: 9,533

Post » Tue Jun 28, 2016 7:24 pm

you could harness double tap on enemy to achieve this. Single tap will move to the Touch.X,Touch.Y

double tap on object will "run" to that position and "Destroy" the enemy.

Attached a capx. Made it quickly, so sorry for the double code for moving/dashing, should be enough to make the point.

https://drive.google.com/file/d/0B5myBvkaZTxsdnVaUjZxbjBzU3M/view
B
18
S
7
G
1
Posts: 160
Reputation: 1,934

Post » Tue Jun 28, 2016 9:16 pm

Thank you! I'll definitely look into this. Appreciate the help @trueicecold
B
28
S
11
G
15
Posts: 47
Reputation: 9,533


Return to How do I....?

Who is online

Users browsing this forum: max2612 and 33 guests