User Tag List

Results 1 to 4 of 4

Thread: How to set active to face direction of touch

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Jun 2014
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to set active to face direction of touch

    Hi,

    I think this must be quite simple but I can't figure it out. I need an active to face the direction of touch. So if someone moves their finger left, the active would face left and so on but for the complete 360 range.

    I have this working when using the mouse movement control but this doesn't work on android screens.

    Thanks very much for any help.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    How are you doing it now?

    You can use the "Angle of a vector" in any object's expression to retrieve the angle between itself and another point, such as the coordinates of the mouse/first touch.

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Jun 2014
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much ProdigyX, I'll look into the angle of vector expression.

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Jun 2014
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I couldn't find the vector when using the android multitouch. But I have it working kind of (please see attached file) - it works fine when clicking at an angle and then releasing the button and repeating, but when keeping the mouse button clicked and moving around the angle of the active object doesn't change fast enough. Is there any way to make the active's angle change instantly?

    Thanks

    android-touch.mfa

Similar Threads

  1. Face one direction but move opposite
    By jaytmek in forum Fusion 2.5
    Replies: 1
    Last Post: 4th April 2014, 07:23 PM
  2. How to get an enemy to face its direction of movement.
    By Narfafian in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 20th July 2012, 12:27 AM
  3. Vector bullet fired from 360...how to set angle to face direction?
    By Blacstar in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 8th March 2012, 05:01 PM
  4. Touch on Active Object
    By Power2r in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th August 2011, 08:15 PM
  5. Beta 13: Touch on Active Objects Bug
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 12
    Last Post: 23rd February 2011, 03:10 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
  •