User Tag List

Results 1 to 8 of 8

Thread: Overlay Fastloop trouble, recolouring pixels bug?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Overlay Fastloop trouble, recolouring pixels bug?

    I have some trouble with Overlay and Fastloop in MMF 2 Dev.

    I try to load a picture, define the background colour by the first upper left pixel and paint everything black that has not this colour.

    The code itself works. Problem is that it looses some pixels while the loop which are definitely not background colour. Which makes it somehow useless ...

    Some ideas what´s going on here?

    The attached file contains the problemfile. Made with MMF 2 dev, needs the Overlay Extension for MMF 2.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Overlay Fastloop trouble, recolouring pixels bug?

    I have some trouble with Overlay and Fastloop in MMF 2 Dev.

    I try to load a picture, define the background colour by the first upper left pixel and paint everything black that has not this colour.

    The code itself works. Problem is that it looses some pixels while the loop which are definitely not background colour. Which makes it somehow useless ...

    Some ideas what´s going on here?

    The attached file contains the problemfile. Made with MMF 2 dev, needs the Overlay Extension for MMF 2.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlay Fastloop trouble, recolouring pixels bug?

    The problem is the way you put the condition on line 16. You set it to happen when the reds are different, the greens are different, and blues are different. However, think about what happens if one color component is the same. E.g.:
    RGB(52,64,25)
    Would evaluate false when compared to:
    RGB(52,21,92)
    Because not all of the components are different.

    I think what you want is three separate events, one for each color component difference.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlay Fastloop trouble, recolouring pixels bug?

    The problem is the way you put the condition on line 16. You set it to happen when the reds are different, the greens are different, and blues are different. However, think about what happens if one color component is the same. E.g.:
    RGB(52,64,25)
    Would evaluate false when compared to:
    RGB(52,21,92)
    Because not all of the components are different.

    I think what you want is three separate events, one for each color component difference.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlay Fastloop trouble, recolouring pixels bug?

    Ah, stupid me. You are right. I need three separate loops here. Thank you very much for the solution. That should do the trick <img src="/center/images/graemlins/smile.gif" alt="" />

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlay Fastloop trouble, recolouring pixels bug?

    Ah, stupid me. You are right. I need three separate loops here. Thank you very much for the solution. That should do the trick <img src="/center/images/graemlins/smile.gif" alt="" />

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlay Fastloop trouble, recolouring pixels bug?

    No problem! <img src="/center/images/graemlins/laugh.gif" alt="" />

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlay Fastloop trouble, recolouring pixels bug?

    No problem! <img src="/center/images/graemlins/laugh.gif" alt="" />

Similar Threads

  1. Trouble with DavidN's Fastloop Custom Platform Movement
    By TheFieryPlumber in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 27th June 2014, 01:04 PM
  2. Having trouble with fastloop enemy movement
    By Fralex in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th September 2010, 11:43 PM
  3. Trouble with Overlay Redux
    By DMT in forum File Archive
    Replies: 3
    Last Post: 13th August 2009, 03:28 AM
  4. can't find overlay redux (Overlay.mfx)
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th August 2007, 12:47 AM
  5. questions de pixels...
    By Sylnade in forum Extension Developers Lobby
    Replies: 2
    Last Post: 16th March 2007, 03:15 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
  •