User Tag List

Results 1 to 4 of 4

Thread: Method of correcting speed when diagonal moving

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,764
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Method of correcting speed when diagonal moving

    - Repeat while "Right Arrow" is pressed: Set X poaition to X( "Active" )+1
    - Repeat while "Up Arrow" is pressed: Set Y poaition to Y( "Active" )-1

    The object moves by twice the speed when it pushes the Right and Up at the same time.

    How can I correct the speed when diagonally moving?

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,730
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Method of correcting speed when diagonal moving

    Can you bump up the X and Y to 2, or would that nullify the perfect diagonal movement?

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,764
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Re: Method of correcting speed when diagonal moving

    The speed of a diagonal movement quickens more than the speed that moves only horizontal or vertical.

    current X + 1/sqr(2) * 2;
    current Y + 1/sqr(2) * 2;

    Can the floating point be used to move coordinates of MMF2?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Method of correcting speed when diagonal moving

    Floating point can't be used to move the coordinates (it won't increment/round properly), but all you have to do is set an alterable value to the X/Y position, and then always set the position to that alterable value.

Similar Threads

  1. Diagonal d-pad (POW)
    By willy in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st December 2018, 04:51 AM
  2. compensation the diagonal movement speed
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 27th April 2013, 11:38 PM
  3. Platforms moving same speed problem
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 21st February 2013, 01:56 PM
  4. Moving toward in set speed?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 21st October 2012, 03:13 AM
  5. Amount of diagonal moving value
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th August 2010, 06:27 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
  •