User Tag List

Results 1 to 2 of 2

Thread: Movement based on timer object calculation

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Mar 2014
    Location
    Sweden
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Movement based on timer object calculation

    "The timer starts at zero and increases by one every thousandth of a second"

    I want to move an object 1px (for collision detection) with adjustable speed using the timer's calculations but I get the same outcome from 1/1000 as from 1/100 while not using calculations.
    How can I have 1px movement at any speed?

    Timer.mfa

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    863
    Mentioned
    99 Post(s)
    Tagged
    0 Thread(s)
    If you're manually moving an object faster than the frame rate - it's going to slow down to equal the frame rate - in your case 60 frames per second - because Fusion will only execute it once when the frame loops.

    You can overcome this by using loops, for example:

    * Always
    Special : Start loop "move me" 10 times


    * On loop "move me"
    Active 2 : Set X position to X( "Active 2" ) + 1
    Counter 2 : Add 1 to Counter


    Or to use the built-in movements, like bouncing ball movement and then adjusting the speed of the movement until you get your desired effect.

Similar Threads

  1. Platform Movement Object and Timer-Based Movements
    By DistantJ in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 18th February 2012, 03:44 PM
  2. Platform Movement Object and Timer-Based Movements
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 4th February 2012, 11:17 PM
  3. Minor bug with Timer Based Movement
    By AndyH in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 6th September 2011, 08:30 AM
  4. Timer-based movement
    By Johnny in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 4th December 2010, 12:12 AM
  5. Explanation of Timer-based movement
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th October 2010, 01:14 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
  •