User Tag List

Results 1 to 7 of 7

Thread: Object trails

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Location
    Palm Harbor, Florida
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Object trails

    I am doing a revision of a game with a mouse-controlled object, and one thing I am revising is the graphics. I want the graphics to be smoother with better special effects. I would like the mouse-controlled object to leave a quick, temporary trail of color behind it when it moves. I would also want the trail to increase in translucency from the object to the end of the trail. How can this be done?

  2. #2
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object trails

    maybe create some active objects as trails and increase the transparency a few times each second until the object becomes invisible. Then destroy the object once it in transparent.

    This will of course depend on the number of objects which you want the trail effect to apply to because too many actives at once can slow the program down or eat a lot of memory

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Location
    Palm Harbor, Florida
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object trails

    Well I am looking to make the trail basically a blur of color. If I used that method, the game would have to be rapidly creating new objects, many per second, which would undoubtedly cause a major slowdown. Thanks for your help though. I'm sure there must be a feasible way to do this, as I think MMF does have the potential. Does anyone have any other suggestions?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Object trails

    The easiest way to do this is to create an Active Object and set its Fade-out transition to Fade (set fade speed to 0.22 seconds). Then have an event to always create this AO at 0,0 from the mouse object. Then destroy the object in the same event.

    This method will generate about 13 extra objects and shouldn't give you any slowdown.

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Location
    Palm Harbor, Florida
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object trails

    This method does work kind of well, except there are gaps between the clones of the active object causing it to look more like the Windows mouse trail feature rather than a blur of color as I had hoped for.

    I mean instead of looking like:
    (((((((x)

    it looks more like:
    (x)(x)(x(x(((x)

    Are there no options left? I noticed you said "easiest way." I don't really care if I have to do something complicated, as long as it looks good.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Object trails

    Ok, if you insist, here's a more complicated way of doing it

    The problem is that the mouse position is not updated fast enough, so we have to make our own mouse object using fastloops.
    Make a new AO called M.

    * Always
    - Start loop "mouse" 30 times

    * On loop "mouse"
    + Xpos of M < Xmouse
    - M: set xpos to xpos+1

    * On loop "mouse"
    + Xpos of M > Xmouse
    - M: set xpos to xpos-1

    * On loop "mouse"
    + Ypos of M < Ymouse
    - M: set ypos to ypos+1

    * On loop "mouse"
    + Ypos of M > Ymouse
    - M: set ypos to ypos-1

    Create an AO (name it C) with the color you want, and also like in the last example give it a fade-out transition that fades out in 0.22 secs or faster.


    * On loop "mouse"
    + LoopIndex("mouse") mod 4 = 0
    - Create C at 0,0 from M
    - C: destroy

    This method will generate about 100 extra objects and will be alot smoother. You can alter this ammount by changing mod 4 to something else. Mod 4 = 0 means it does the action on every 4th loop. Mod 8 = 0 would make it do the action every 8th loop.

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Location
    Palm Harbor, Florida
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object trails

    Yes, this works really good. I had to tweak with it a bit, but this is exactly what I was looking for. Thank you.

Similar Threads

  1. Graphic trails or fading
    By jbrown2177 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd June 2013, 05:24 PM
  2. "Drawing" Trails
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 24th July 2009, 06:23 PM
  3. Trails?
    By Appo in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 15th October 2008, 02:36 PM
  4. The reason for trails (FOUND IT!)
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th September 2006, 06:55 PM
  5. Object trails...
    By izac in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 29th July 2006, 12:42 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
  •