User Tag List

Results 1 to 4 of 4

Thread: How do you create an object that bobs up and down?

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export Module

    Join Date
    Dec 2008
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do you create an object that bobs up and down?

    Basically, I want to make an object so that when this particular platform movement object touches it, it sinks, and when the platform movement object is NOT touching it, it rises back to its original position. How would I do something like that?

  2. #2
    No Products Registered

    Join Date
    Feb 2009
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you create an object that bobs up and d

    The simplest way is:

    • Make the bobber an active object
    • Start of frame - set bobber value B to Y("Bobber")
    • On overlap with hero add 1 to bobber value A
    • On collision with hero, stop hero
    • If bobber value A >= 10, set Y of bobber to Bobber value B + (Bobber value A / 10)
    • Negate on overlap with hero, subtract 1 from bobber value A


    That should do it... but this is just an off-the-top-of-the-head answer.


  3. #3
    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)

    Re: How do you create an object that bobs up and d

    The simplest way is:

    • Create an alterable value named Sine
    • Make an Always event
    • +Set its Y position to: Y( "Active" )+Sin(Sine( "Active" ))
    • +Add 1 to Sine


    That should do it... but this is just an off-the-top-of-the-head answer.

  4. #4
    No Products Registered

    Join Date
    Dec 2008
    Location
    U.S.
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you create an object that bobs up and d

    Quote Originally Posted by DarkeSoft
    The simplest way is:[*]+Set its Y position to: Y( "Active" )+Sin(Sine( "Active" ))
    Y( "Active" )+(Sin(Sine( "Active" )*However many pixls you want it to bob up and down for))

Similar Threads

  1. Launch or Create Object actually creates two of the object, not just one.
    By LemonyLime in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 30th June 2017, 09:46 PM
  2. [BUG] Create object if flag is off, and assign something to the created object
    By Popcorn in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th January 2013, 11:01 PM
  3. Create Object + Object Selection Revisited
    By Crash86 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd February 2011, 04:33 PM
  4. create object help
    By Neomatoda in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 17th December 2009, 10:27 AM
  5. Create object at same position of object destroyed
    By The Thinker in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 6th November 2006, 12:16 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
  •