User Tag List

Results 1 to 7 of 7

Thread: using draw object

  1. #1
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    using draw object

    How would I set 3 numbers to be the RBG to be the selected color? It only allows me to set the red number.

  2. #2
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: using draw object

    I just realized that this object does not have 3 numbers, rather just one very large number. How would I slowly go from one color to another by changing a single number?

  3. #3
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: using draw object

    MMF has the following functions:

    Getrgb(red,green,blue)
    (converts the diffrent colors into one 'big number')

    getred(bignumber)
    (gets the red value out of the big number)
    getgreen(bignumber)
    (gets the red value out of the big number)
    getblue(bignumber)
    (gets the red value out of the big number)


    so to change the red value by +1 use:

    getrgb(getred('big number')+1,getgreen('big number'),getblue('big number'))

    Hope that makes sense :grin:

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

    Re: using draw object

    Good info Seele. Skeets, I have an example on my website that uses the draw object. The collors are selected by Keys. The example is called Houses and Utilities. It may help.

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

  5. #5
    Rayanami
    Guest

    Re: using draw object

    seele (cool name) whilst you may be correct if you use such mmf functions you will only be wasting time , i find it easier to change the way mmf functions , in this case i have used the following code to change the way mmf works , and you will never have to use such stupid codes such as seeles

    If r > g And _
    r > b Then
    picTextAt.PSet (x, y), RGB(255, 0, 0)
    ElseIf g > r And _
    g > b Then
    picTextAt.PSet (x, y), RGB(0, 255, 0)
    ElseIf b > red And _
    b > g Then
    picTextAt.PSet (x, y), RGB(0,0, 255)
    End If

    please seele get a life

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

    Re: using draw object

    Hi Rayanami. Your psuedo code should just be broken down in MMF code to help beginners, and veterans alike. IMHO, Seely has been on these forums a long time, and has helped many forum members, and answered hundreds of questions.

    It would probably be best to PM Seeley for little unfair snippets like you made about his life.

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

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: using draw object

    Quote Originally Posted by Rayanami
    seele (cool name) whilst you may be correct if you use such mmf functions you will only be wasting time , i find it easier to change the way mmf functions , in this case i have used the following code to change the way mmf works , and you will never have to use such stupid codes such as seeles

    If r > g And _
    r > b Then
    picTextAt.PSet (x, y), RGB(255, 0, 0)
    ElseIf g > r And _
    g > b Then
    picTextAt.PSet (x, y), RGB(0, 255, 0)
    ElseIf b > red And _
    b > g Then
    picTextAt.PSet (x, y), RGB(0,0, 255)
    End If

    please seele get a life
    This is a very rude post. Seele has been a very helpful asset to us for many years. If you code differently then someone else, that's fine. Don't be so snotty. In my opinion, Seele's code is easier and more efficient.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


Similar Threads

  1. Draw Object
    By imothep85 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th September 2010, 09:46 PM
  2. [Screen Draw Object]Bug with Draw Line
    By LB in forum Extension Development
    Replies: 1
    Last Post: 2nd June 2009, 12:32 AM
  3. BUG: Draw Object
    By Game_Master in forum Extension Development
    Replies: 5
    Last Post: 26th January 2008, 08:10 PM
  4. Draw Object
    By Eliyahu in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 15th October 2007, 09:56 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
  •