User Tag List

Results 1 to 9 of 9

Thread: Using external graphics?

  1. #1
    No Products Registered

    Join Date
    Feb 2012
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using external graphics?

    Hello

    Is there a way or is it even recommendable to use external graphics?

    The exe file of my game is already 714KB and it's FAR from done. It doesn't even has music and sounds yet.
    Would it be possible to use different files for the graphics?

    Something like this:

    \gamedir\
    \gamedir\game.exe
    \gamedir\data\
    \gamedir\data\background1.png
    \gamedir\data\enemysprites.png

    etc.

    Is it possible? Would it lag? Is it stupid to do?

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    It is perfectly possible to do as long as you don't access the images in rapid succession.

    By the way, 714KB is extremely small. Even 10MB is a little on the anorexic side. Do you have some file size constraint?
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Aug 2011
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes it's possible considering I use external files daily. Lag depends on how you're using them. If you're constantly reading/writing to a file in a fastloop or some other resource tasking event then yes it'll be a problem. Usually with external files you should only need to access it initially during frame start up, sorta like caching. I don't think it's stupid considering you'll have greater modularity.

  4. #4
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah my game right now is almost 9MB (not including the music and sound data which is external) and it's still not even half finished and it only has NES graphics and crap like that, although it's getting close to 9MB. As LB said, 10MB is a little small for an application size, let alone 714kb.

    I make use of external files quite often but I try to load them few and far in between because when I did something like loaded the controls constantly from an INI file, my game lagged like hell but I've since learned from that mistake so you should load them at the start of the frame or something like oasuke recommended.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Was just about to ask a question on this topic, I prefer working with external files mostly as it's much faster than re-importing a sprite in MMF. However, I've always wanted to be able to compress or encode a folder with MMF somehow. To disguise it so that people can't edit the files inside. Is this possible?

  6. #6
    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)
    Archive Object would work. Add all your files to an encrypted zip file (with a custom file ext if you want) and just extract what you need at runtime.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! Will give it a look.

    Hmm, although, as I'm considering releasing this in flash format I guess I'd probably better off just using in-game sprites right?

  8. #8
    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)
    I am pretty busy but I will add porting Archive to flash to my list.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  9. #9
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You'll need to use some sort of file compression on the external graphics. Otherwise you aren't saving yourself anything by making them external, it will still be basically the same size download (if file size is your main concern). I'm not sure how MMF handles graphics internally and how it compresses them. Couldn't tell you the size difference between things stored in the .exe and loading external uncompressed graphic files, maybe someone else knows.

Similar Threads

  1. Handling of external graphics in global objects over different frames
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th June 2013, 04:26 AM
  2. External Graphics
    By MattKapa in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 29th November 2012, 12:38 AM
  3. Importing external graphics
    By Trowar in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th May 2011, 08:38 PM
  4. External Fi(ck)les
    By HammerBro in forum Vitalize
    Replies: 8
    Last Post: 10th September 2008, 03:33 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
  •