User Tag List

Results 1 to 3 of 3

Thread: RGB calculator program

  1. #1
    No Products Registered

    Join Date
    Jul 2009
    Location
    Facebook
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RGB calculator program

    I am making this program where you enter a number 0 through 255 and set it as red, green, or blue, and my program will display all the colors RGB in a 255x255 grid, using that color as a constant

    like, you enter 50 and click red, and the screen will show all possible combinations of blue and green with a constant of 50 red.

    My problem is, every time i run, i get an error message saying that 'Games Factory Runtime has encountered an error and needs to close'

    I think this is because the program is loading 50625 active objects (each object being a separate color)

    is there a limit to the number of objects? and is there a way around that?

    Or should i try to convert all my objects to background objects?

    Thanks

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: RGB calculator program

    Yes I think that this amount of object is a little too much for tgf. Even if it not crash (it should not), it would be very very slow.
    I think you should have a look at the draw object, which allows you to draw pixels and line on a surface...

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: RGB calculator program

    Haha, that's quite a huge overhead there - an object with all the information stored in the memory, just for displaying a pixel Yes, TGF is rather limited in this area, but the Draw object still works fine here. I think you have to set it to passive mode, then you can move the cursor instead of letting the user draw.

Similar Threads

  1. The ''calculator''
    By JappeJJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 21st November 2011, 05:01 AM
  2. Direction Calculator
    By Raphael in forum Extension Development
    Replies: 10
    Last Post: 16th September 2006, 11:45 AM
  3. Angle Calculator
    By willy in forum Extension Development
    Replies: 2
    Last Post: 13th August 2006, 06:02 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
  •