User Tag List

Results 1 to 3 of 3

Thread: Importing external graphics

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Apr 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Importing external graphics

    I am trying to make a level editor and I'm trying to use the following system to display all of my available level tiles on the screen:

    There is a folder called 'Tiles' which contains bitmap images that use incremental numbers as the filename e.g. 1.bmp,2.bmp,3.bmp etc.

    In the even editor I use MMF fastloops to do the following:

    Start Loop 'Draw Y' for 24 loops
    On loop 'Draw Y' Start loop 'Draw X' for 28 loop
    On loop X:
    Set X position of active object to X Loop POS * 32
    Set Y position of active object to Y Loop POS * 32
    Load animation frame "C:\Users\Muffin\Desktop\Zed\Tiles\"+Str$(LoopInde x("Draw Y S")*28+LoopIndex("Draw X S")+1)+".bmp"
    Paste animation into Background

    My problem is that every pasted animation frame is always of the last bitmap file in the folder. I need to ensure that MMF pastes each image in the folder one by one.

    I hope this makes sense?

    Example MFA and 5 graphics tiles are available at:

    instantfail.com/test.zip

    To show the problem

    Edit:
    If anyone has any suggestion on a better way of reading external graphics files in real time, please let me know.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Apr 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Importing external graphics

    Apparently I can just use the Active Picture object instead.

    Problem Solved!

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

    Re: Importing external graphics

    You could also use a TextBlitter object instead of having an active picture object on every single tile. It's rather easy to get it to animate "tiles" in it and also make backdrop objects paste into the background with it on tiles that are obstacles. I know because I've done it multiple times before and am currently doing it in my game and with this method all your tiles would even be in one single bitmap file.

Similar Threads

  1. Importing graphics without alpha
    By netninja in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th December 2012, 02:05 PM
  2. Importing Transparent Graphics
    By zeal in forum Multimedia Fusion 2 - Technical Support
    Replies: 24
    Last Post: 5th October 2010, 12:57 AM
  3. Importing graphics into MMF2 question
    By nimbus in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th March 2009, 08:54 PM
  4. Importing new graphics in-game
    By Bugsey in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 16th January 2008, 09:32 PM
  5. Importing Graphics
    By Jameycus in forum The Games Factory 2 - Technical Support
    Replies: 13
    Last Post: 29th July 2006, 01:11 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
  •