Using swipes to move an object

Discussion and feedback on Construct 2

Post » Tue Aug 25, 2015 1:18 am

Hi,

I'm trying to figure out how can i use swipe movements to move an object (ball) in any direction of my layout. I don't want to use buttons or the keyboard for it, only swipes (as it intended to be for touch screen devices). This object also should have different velocities, depending on the swipes velocity it is given to it. And the movement has to gradually decrease until it stops or another swipe make it move again in any other direction. The game works in a top down view, so i have already remove gravity from the object, and finished almost all the game layout. The game is working but i'm using the arrows to move the ball. I would like to know how to do this using swipes. I've already searched the tutorials here, on Youtube, and in the Construct manual, but i wasn't able to make it work. If someone has a example or something that can ilustrate this kind of behavior or how to do it, it will be pretty much appreciated. Thanks!
B
14
S
5
Posts: 110
Reputation: 1,338

Post » Tue Aug 25, 2015 1:26 am

B
122
S
42
G
40
Posts: 846
Reputation: 27,994

Post » Tue Aug 25, 2015 1:44 pm

andreyin wrote:Have you tried this?



Thank you. I've already seen that, it basically detect the swipes direction, but i don't know how to do the next step, which is to make the object move in that direction. I will try to look on the internet if i can find something about how to do this. If you have any tips, just let me know. Best wishes!
B
14
S
5
Posts: 110
Reputation: 1,338

Post » Tue Aug 25, 2015 7:20 pm

I'll move this post to the appropriate section..."How do i...?"

Sry for this. I'm just starting here.
B
14
S
5
Posts: 110
Reputation: 1,338

Post » Tue Aug 25, 2015 10:31 pm

See the action "Alert: swipe down" ? You just change that to whatever you want to happen.
B
122
S
42
G
40
Posts: 846
Reputation: 27,994


Return to Construct 2 General

Who is online

Users browsing this forum: tumira and 3 guests