User Tag List

Results 1 to 3 of 3

Thread: How to get an angle from a swipe ?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Apr 2015
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get an angle from a swipe ?

    hi,

    i'm making a fruit ninja clone and i'd like to know how to retreive the angle of my swipe to apply it to my blade.
    i'm using "répéter tant que l'utilisateur clic" (sorry it's in french) and i create an active from the mouse.
    for the moment it's a square but i'd like to use a "blade alike" graphic.

    Thx

  2. #2
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2015
    Location
    Australia
    Posts
    166
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    An easy way to do it is using the MultiTouch object - it has the angle of a drag/swipe as a property:


    If you wanted to do it yourself with the "Repeat while mouse is pressed" event, you could do something like this:


    Here's an example:
    swipeangle.mfa

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Apr 2015
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much

Similar Threads

  1. Swipe up/down/ left/right gestures
    By psychoanima in forum Android Export Module 2.5
    Replies: 3
    Last Post: 15th February 2017, 10:01 PM
  2. Flick and swipe gestures
    By Kritter in forum Fusion 2.5
    Replies: 2
    Last Post: 23rd November 2015, 06:28 PM
  3. How to make gesture swipe?
    By Kirill in forum iOS Export Module 2.5
    Replies: 1
    Last Post: 8th May 2015, 11:02 PM
  4. How to use swipe to change frames?
    By tjmhoops in forum Android Export Module 2.5
    Replies: 4
    Last Post: 14th October 2014, 01:39 AM
  5. argh help! I can't swipe stuff!
    By foyzul2002 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th August 2013, 03:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •