User Tag List

Results 1 to 2 of 2

Thread: Custom movement issue

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Northern Italy
    0 Post(s)
    0 Thread(s)

    Custom movement issue

    I'll try to explain my problem.
    I must move a character from a X,Y to another X,Y pair of coordinates. I know there are extensions, such as MoveIt, that can move it directly from start point to destination point, but as far as I know they use a constant speed. But I'm already using a custom walking movement that sets, for the main 8 directions, an anti-glide effect, and I definitely want to use it because it's very natural.
    Look at the image below:

    the same is set for each main direction, so the character walks of a certain amount of pixels not always but only every 00"08, and that amount of pixels depends on the scale, for perspective purposes.
    That's why a fixed speed doesn't fit my needs.
    How can I move a character using those events from point A to point B?

    For example, if the destination point is almost on the vertical of the start point (let's say -220 on the Y, and +24 on the I can make the character move with its custom movement until its Y coordinate reaches the destination's Y, nothing's easier: it goes up 220 pixels; now, how can I know how much time will it take to get there in order to calculate how many pixels it must move every 00"08 to cover the 24 pixels on the X?
    I suppose I must use sine and cosine, but I need help on that.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    0 Post(s)
    0 Thread(s)

    Re: Custom movement issue

    Why not just get the length of the movement segment using the Pythagorean theorem and divide it by the speed?
    -Mokhtar M. Khorshid

Similar Threads

  1. Help with custom level editor object loading issue
    By DinnerSonic in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 3rd May 2013, 08:55 AM
  2. overlap (custom collision detection) issue
    By Hamcraft in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 26th May 2011, 03:08 PM
  3. Custom movement
    By Hordolur in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th July 2008, 12:16 PM
  4. Custom Movement problem (Horizontal movement)
    By KiteRyagara in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th June 2008, 04:40 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