User Tag List

Results 1 to 6 of 6

Thread: Custom Movement help.

  1. #1
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom Movement help.

    how do I make an object move fluidly up?

    I've tried

    repeat while up key is pressed - Y( "Active" )-5

    but that doesn't quite work right..

    basically would like to add to a direction in small increments

    (somewhat trying to learn to create custom movements, and learn how it's done)

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The first derivative of position is velocity or speed, that is, the amount position changes over time. To implement this, you need to make two values called X Speed and Y Speed, and use the events:

    Always: Set X Position to X+X Speed
    Always: Set Y Position to Y+Y Speed

    This will make the player move in linear motion, that is, a constant, uniform speed relative to the speed value. The second derivative of position, or the first derivative of velocity, is acceleration, which is the amount velocity changes over time. To implement this, you have to make two values called X Acceleration and Y Acceleration, and use the events:

    Always: Set X Velocity to X Velocity+X Acceleration
    Always: Set Y Velocity to Y Velocity+Y Acceleration

    This will make the velocity change linearly, a constant change over time. However, this makes the player's position change exponentially, showing acceleration since you're dealing with its second derivative. To accelerate upwards, set Y Acceleration to -1

  3. #3
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh word, thanks for that. I'm gonna see if I can't set that up.

  4. #4
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had this working when I first posted this, but now weeks later I can't seem to getting working again, lol..

    X+XSpeed( "Hero" )

    this gives me a syntax error when I try to set x position on an always condition..


    I know the above post by Jacob works because I did this a week ago or something, but can't seem to get it now..

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    It doesn't know what just "X" is by itself. You probably meant X("Hero")+XSpeed("Hero")
    Working as fast as I can on Fusion 3

  6. #6
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol, that makes perfect sense.

Similar Threads

  1. Help with Custom Movement
    By lucaoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd September 2011, 05:21 PM
  2. Custom movement
    By Hordolur in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th July 2008, 11:16 AM
  3. Custom Movement problem (Horizontal movement)
    By KiteRyagara in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th June 2008, 03:40 PM
  4. Help with custom movement.
    By Dynamite in forum File Archive
    Replies: 2
    Last Post: 10th January 2008, 01:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •