Using swipes to move an object

0 favourites
  • 5 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • 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!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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!

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

    Sry for this. I'm just starting here.

  • See the action "Alert: swipe down" ? You just change that to whatever you want to happen.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)