User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Flash an object to a solid color?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Flash an object to a solid color?

    Is there a way to flash an object with a solid color, instead of turning invisible and visible again? For example, if a character or enemy gets hit, i want it to temporary flash white, and revert back to normal. Can i achieve this without resorting to using color replace feature?

  2. #2
    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)
    Perhaps you could use a Shader that messes with the RGB coefficient on and off?

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The best way is almost invariably a hardcoded animation. A HWA shader *can* do it, but its needlessly expensive in terms of GPU. If you had a bunch of other effects going on at the same time, like a ton of enemies being struck and flashing, it could slow down a game based on shaders alone.

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Monokkel's Avatar
    Join Date
    Sep 2010
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are four ways of doing this that I can think of. Each with different pros and cons.

    1) The "Simple Mask" shader does exactly what you're asking for, but as Pixelthief noted it's GPU-expensive, and requires HWA.
    I use the shader-method myself. Partly because I'm lazy, but also because you can have the colour fade back to the regular colours if you want. If you use HWA and you are only using this effect for a few objects it really is the simplest solution.

    2) You can change one specific colour on your active object in the event-editor. If you create an even where you specify all the different exact colours in your active object and change them to a different colour that would do the trick. But this is only viable if you have a very small colour pallette on your active object, and even then it is time-intensive.

    3) You can create a single animation where the object flashes in your selected colour. This would only work well if your objects animation is static or nearly static, though. If your object is animated through events this would be the way to go.

    4) You can create a different complete animation for every animation the object has, identical in every way sans colour. Then you could specify the animation and frame in the event editor. Example:
    ---------------------------------------------------------------
    "Bullet" overlaps "Hero"
    + Animation (dancing) is playing

    = Set alterable value A("Hero") to Current animation frame("Hero"), Change Animation of Hero to (Dancing red), Change animation Frame (Hero) to alterable value A("Hero")
    ---------------------------------------------------------------
    Doubling the amount of animations would of course increase the size of your game though, and I really have no idea how expensive this would be in terms of GPU.

  5. #5
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    N64Mario. I am not sure if it is what is needed in your case, but I have an example on my website that may help.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nivram View Post
    N64Mario. I am not sure if it is what is needed in your case, but I have an example on my website that may help.

    Marv
    I need a search function on your site, there's too many examples for me to look through them all to see what, or where you're going at. At least maybe a name would help? :-/

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    IMO,.the simplest way would be to create an additional animation for that.

  8. #8
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Kickback and Flash Example
    Maybe you will have time to look at it.

    I agree with John though.
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  9. #9
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2012
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you not just have a duplicated character, and always have it's position on top of the character, doing the same animations, etc, and only have them visible when struck (or what have you). Just have every frame of the char just set to the colour you want.

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nivram View Post
    Kickback and Flash Example
    Maybe you will have time to look at it.

    I agree with John though.
    That only flashes them turning them invisible and visible again. :-/
    Though I suppose I can go with double object layer thing just to make it flsh one solid color. I donno I thought there was a way to do this through color shading back before the HWA days.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Flash + 256 color palette
    By Ryan in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 25th August 2010, 03:16 AM
  2. Fading an object to solid black?
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 3rd March 2009, 08:15 PM
  3. Fading an object to solid black
    By Atom in forum File Archive
    Replies: 1
    Last Post: 3rd March 2009, 05:26 PM
  4. dectecting a solid object above
    By Winston in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 25th September 2008, 04:49 AM
  5. I need help making this platform engine solid.
    By jasonbuividas in forum File Archive
    Replies: 6
    Last Post: 8th June 2008, 01:05 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
  •