User Tag List

Results 1 to 3 of 3

Thread: Vertical platform sine movement?

  1. #1
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vertical platform sine movement?

    Greetings!

    I'm trying to create a platform that moves vertically, and I'm trying to get a smooth up and down movement without it being choppy or too fast, but I'm having some problems.

    Currently, every platform has its gravity that determines how fast it moves up and down. platforms are identified at runtime by fastloops and spread values in their ids, but there seems to be some kind of overlap.

    Each platform has the values maxGrav, minGrav and Grav.
    If the platform is 100 pixels above its starting point and the gravity is lower than the maxgrav, it adds to Grav by 1. This causes it to go down.
    This turned out very choppy, as the values for maxgrav and mingrav are 2 and -2 respectively, so the change is almost instantaneous. I then added a timer so that it only adds or subtracts Grav every 00:10 seconds, but this results in one of the platforms behaving sort of correctly, but the other one only ever reaches 1 or -1 in Grav, while it should reach 2 or -2. Am I doing something incorrectly here?
    Is there a better way?

  2. #2
    No Products Registered

    Join Date
    Aug 2014
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you upload some kind of example?

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

Similar Threads

  1. Vertical Moving Platform
    By Kentronisk in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 31st October 2014, 12:52 PM
  2. Custom Movement Platform Vertical
    By Dimar in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 21st July 2013, 02:44 PM
  3. Platform Movement and Vertical Moving Platforms
    By GreyMario in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th January 2011, 03:18 PM
  4. Vertical Platform
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th August 2010, 02:10 AM
  5. Custome sine movement.
    By DJFuego in forum Widgets
    Replies: 3
    Last Post: 28th July 2009, 01:37 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
  •