User Tag List

Results 1 to 4 of 4

Thread: Move an object along a line

  1. #1
    Clicker Fusion 2.5 (Steam)
    Mazerwulf's Avatar
    Join Date
    Dec 2014
    Posts
    34
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Move an object along a line

    I am assisting someone with their shooter and I am trying to work on a new movement concept for said game.


    I want to have an invisible circle in the middle of the screen with the ship on the edge of the circle. When you push a direction, it moves the ship along the circular path without being able to deviate from it.

    How would I go about this in the most efficient manner?


    Untitled.png

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, if you don't want to use maths, you can use an extra active object to control the circular movement, and then just attach the ship object to that. Check this example:

    exampleRotation.mfa

  3. #3
    Clicker Fusion 2.5 (Steam)
    Mazerwulf's Avatar
    Join Date
    Dec 2014
    Posts
    34
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That seems to work very well! Question tho; how would I speed it up?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the expressions for the events that rotate the object, just increase the 1.

Similar Threads

  1. Sentence by sentence or line by line movement in Rich Text object?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 17th March 2013, 11:36 PM
  2. How would you move an object in straight line pixel by pixel from location to another
    By Tsun in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 22nd December 2012, 10:38 PM
  3. Always - move object Y-1 is to slow, and always - move object Y-2 is to fast. help
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 9th February 2012, 12:56 PM
  4. Save text to ini in "iOs Multiple Line Object" more than one line!
    By iamjot in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 1st February 2012, 02:16 PM
  5. Change List Object Line Color - One Line Only?
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st December 2008, 05:58 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
  •