How do I do a swipe touch!

Get help using Construct 2

Post » Thu Sep 03, 2015 4:53 pm

Hi

I am making a game of survival. The soldier needs to shoot at enemies!. I want to do it with swipe touch.

so basically You swipe and the bullet should follow the path of your swipe! How can i do that?
B
8
S
2
Posts: 117
Reputation: 920

Post » Thu Sep 03, 2015 5:31 pm

If you mean something like where the player touches the screen and the bullet go's toward where they touched
you could doing something like set bullet angle toward Touch.Y & Touch.X

For something like where the bullet follows a path premade by your swipe that is something you'll have to work on.

But If I took a shot at it I guess one way would be to spawn Nav points as they player touches then just keeping setting angle of bullet to the next Nav point with some kind of ID attached to it. Sorry can't be of more help.
B
23
S
8
Posts: 115
Reputation: 2,640


Return to How do I....?

Who is online

Users browsing this forum: David181, jorgmaquoi, SignalOne and 23 guests