User Tag List

Results 1 to 2 of 2

Thread: Adding the distance from two points to movement?

  1. #1
    Clicker

    Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding the distance from two points to movement?

    I want to find the distance between two objects, and I want to add a fraction of the distance to the movement of one. But I want it to know if its -100 distance or +100 and apply accordingly.

    How should I do this?

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Record the distance within an Alterable Value before your calculation (the distance() function would be convenient here), then check if it's -100 or +100, and if so you can apply your fraction by adding the divided Alterable Value to your object's movement.

Similar Threads

  1. Replies: 3
    Last Post: 20th June 2015, 08:33 PM
  2. Replies: 2
    Last Post: 11th January 2015, 06:04 PM
  3. Replies: 2
    Last Post: 9th October 2014, 01:07 AM
  4. clickteam vector movement and floating points
    By Quinto in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th October 2010, 01:37 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
  •