User Tag List

Results 1 to 10 of 10

Thread: User Change Red/Green/Blue at runtime?

  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)

    User Change Red/Green/Blue at runtime?

    My application has a filter option which lets you change the transparency value, as well as choosing the filter color. However right now, it only allows for 50 colors to choose from via the animation frame number. Currently, the filter object is a huge transparent square that overlaps the whole screen.

    I want the user to be able to use, or make their own filter color by changing the Red, Blue and Green values of the filter at runtime. So it would be set up to something like this.
    _______________
    | -Filter Options -
    |
    | > Red: 0
    | - Green: 200
    | - Blue: 150
    |
    | - Transparency
    | Value: 150
    ------------------

    Would I use color replace method to do this? Or would I need to use an extension? I am trying to use little to no extensions for my game, so I can keep it as simple as possible.

    Just a small note. The transparency option is working as I want it to. I Just need help with the other part.

  2. #2
    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)
    Can you explain a little more or up load the mfa please.

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

    This is what I'm trying to do. Right now the Red, Green Blue values do nothing at all. You can only change the Color #, and the transparency value.

    I want it so the player can change the Red, Green, and Blue values of the current filter color.

  4. #4
    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)
    I'm not sure if I'm even doing this right,.but look in group "Red". I added in lines 23 and 24 just to see if this is what you want. Seems to work with adding in red to the filter, but really not sure if this is the correct way of doing this. Maybe some one with this type of background doing this sort of thing can chime in.
    Attached files Attached files

  5. #5
    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)
    Somewhat of what I was looking for. I want it so if someone sets the Red to 250, and the Green to 250, They get a Yellow filter. If they set Blue to 250 and Green to 250, they get the cyan filter.

  6. #6
    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)
    Like I said,.I wasn't sure how to handle this as I never attempted this sort of thing before. Sorry I could help. If you delete deactivate group color from line 23 the red shows up better. Not that this will help.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I haven't taken a look at your files, but what you could do is have 3 filter objects, one for each color. If they wanted a cyan filter, bring down the semi-transparency on the blue/green, keep the transp. of the "red" filter at 255 (or 128 if you aren't using HWA) this ought to produce a cyan effect and will allow for a more variety of colors for the user. (I think)

  8. #8
    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 ProdigyX View Post
    I haven't taken a look at your files, but what you could do is have 3 filter objects, one for each color. If they wanted a cyan filter, bring down the semi-transparency on the blue/green, keep the transp. of the "red" filter at 255 (or 128 if you aren't using HWA) this ought to produce a cyan effect and will allow for a more variety of colors for the user. (I think)
    Do you mean have a red screen filter using Semi-Transparency, and a blue screen filter using Semi-Transparency, and a green screen filter using Semi-Transparency to get the color effect? Yeeeeaaaaaaa no. That doesn't exactly work. You can't overlap all 3 screen filter objects and assume to get a white (with all colors at 255) or a black (with all colors at 0). Or at least when I last tried doing this, anyway.

    You know..... I was honestly thinking I could do this with something like this below.
    - [Insert Condition here] -> Replace color RGBAt( "Filter", 0, 0) by RGB(Value("Counter1"), Value("Counter2"), Value("Counter3")). But I tried this too and it does not work.

  9. #9
    Clicker Fusion 2.5 DeveloperiOS Export ModuleUnicode Add-on
    daryuss's Avatar
    Join Date
    Apr 2012
    Location
    Italy
    Posts
    241
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Red face

    I've almost same little problem (What then is not a big problem!). It seemed an easy work, but it is not!

    http://community.clickteam.com/showthread.php?t=71172

    And my little game project is this:

    https://www.dropbox.com/s/a68m215uxc...me_MMF2_WI.zip

  10. #10
    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)
    N64Mario,.did you find the answer? There has to be a way to do this. I did notice that you are in standard display mode in your example,.did you try to set the application to Direct3D 9. That will open up a lot more option for shaders, colors and what not.

    I'd like to see this resolved,.it would be a good learning experience for us.

Similar Threads

  1. Can't change effect during runtime?
    By Storsorgen in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th November 2013, 09:44 PM
  2. change display in runtime
    By waw_demmon in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th July 2013, 05:09 AM
  3. [Request] Change Download Object User Agent
    By LIJI in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th January 2008, 04:13 PM
  4. Green/Blue Screen Extention Request
    By pinacoladaxb in forum Extension Development
    Replies: 3
    Last Post: 7th September 2006, 07:50 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
  •