User Tag List

Results 1 to 4 of 4

Thread: Amount of diagonal moving value

  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,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Amount of diagonal moving value

    Coordinates are changed and the object is moved.

    However, a passing speed that is more diagonal than an upper and lower, right and left passing speed quickens.

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

    The object did not move though "X( "Active" ) +1/Sqr(2)" was used.

    Is there a correction method?

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Amount of diagonal moving value

    you would want:

    - Set X position to X("Active") + 0.7071

    Unfortunately, this doesn't work because X/Y positions must be whole numbers. However, values of your object need not be:


    + Repeat while "Up Arrow" is pressed
    + Repeat while "Right Arrow" is pressed
    - Add 0.707 to Value A("Active")
    - Sub 0.707 from Value B("Active")
    - Set X position to Value A("Active)"
    - Set Y position to Value B("Active")


    Make sure to initialize the A/B values as its X/Y positiosn

  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,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Re: Amount of diagonal moving value

    I did it!

    Thanks!

  4. #4
    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,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Re: Amount of diagonal moving value

    Is not it avoided that the diagonal movement becomes it in a zigzag line?

Similar Threads

  1. Diagonal d-pad (POW)
    By willy in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st December 2018, 03:51 AM
  2. diagonal platform movement without PMO
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th August 2011, 11:45 AM
  3. How to make a diagonal animation?
    By Jacob_Miller in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd May 2011, 02:30 AM
  4. Method of correcting speed when diagonal moving
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th March 2010, 02:13 PM
  5. Custom movement diagonal help
    By Ralucard in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2007, 10:53 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
  •