User Tag List

Results 1 to 6 of 6

Thread: flick gesture

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module
    foyzul2002's Avatar
    Join Date
    Nov 2011
    Location
    London, UK
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    flick gesture

    Hi guys.

    Quick question, do you think its possible, or has anyone being able to replicate a 'swipe' gesture like in games like 'flick football'? I want to be able to swipe and hit a ball or curl a bowling ball, but not sure where to start. Appreciate the help if possible.

    Thanks in advance.

  2. #2
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2009
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could set a point when the user clicks and then set another when the user lets go of the screen. Then angle and scale a line to join these two. Then you could work out directions and such from that.

    You could make a custom timer and use that to determine the time that the finger was held down. Then use that to determine the speed of the football or whatever aspect you are flicking.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will need to record the users touch path and speed, then translate that into something you can give your ball to move (all within a few milliseconds.)

    I'm sure I saw a mouse cursor speed example somewhere on these forums, so perhaps you can translate that to use the multi-touch object instead.

    As for the angle of the shot, a simple angle calculation between the first point of the touch and last point would probably work.

    Not sure about spin

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module
    foyzul2002's Avatar
    Join Date
    Nov 2011
    Location
    London, UK
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great suggestion guys, I'll try to implement these and maybe share it if I get it to work...

  5. #5
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2009
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For the spin, you could position an active object on the point where the user starts their swipe and then position two other actives left and right of this. If the users hold lets go on these, you could curve the shot.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module
    foyzul2002's Avatar
    Join Date
    Nov 2011
    Location
    London, UK
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys. I was using this file to play around with achieving this particular action. I have been playing around with the advanced movement object, (which is not present in this file) but it's still kinda hard for me to grasp on how I can go about implementing this. Is there possibly anyone who may have a better example, or similar that I can dissect and learn from?

    Thanks.
    Attached files Attached files

Similar Threads

  1. Gesture Recognition
    By xhedgehogx in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 18th December 2013, 09:42 AM
  2. argh help me with swipe gesture please!!
    By foyzul2002 in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 16th August 2013, 03:12 PM
  3. Circle gesture?
    By ratty in forum iOS Export Module Version 2.0
    Replies: 9
    Last Post: 19th June 2013, 04:57 AM
  4. Gesture object?
    By EbolaBoy in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 25th July 2011, 12:15 AM
  5. Gesture recognition?
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th May 2011, 03:14 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
  •