User Tag List

Results 1 to 9 of 9

Thread: How to make a general create object?

  1. #1
    No Products Registered

    Join Date
    Jan 2009
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make a general create object?

    So there's a game coming out in fall called Scribblenauts where you write a noun and it appears for use and the different objects interact because every object has a set of properties/attributes. I'm trying to make something like that on MMF2. I've run into a bit of a pothole. I need some way to make it where it creates a certain object based on what you type in. Unfortunately, the Create Object can't use expressions or groups, only specific objects. Is there any way for this to work without making a separate event for every object?
    A related problem is that it doesn't sense when the edit text in the combo box is the same as the object name. (I.e., I made an alterable string for each object that is its name, and I have it set to sense when the combo box text is the same as the alterable string text but it doesn't work.)

    Thanks.

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a general create object?

    Quote Originally Posted by AdamK
    Is there any way for this to work without making a separate event for every object?
    No, unfortunately.

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a general create object?

    I'm not sure if I understood correctly, but you can have the same object with different directions.

    Create active 1: Set direction to random (32) then every direction has a different graphic.

  4. #4
    No Products Registered

    Join Date
    Jan 2009
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a general create object?

    No, the directions thing won't work because there are tens of thousands (I think) nouns in the English dictionary. Or maybe just thousands. Anyways, each object has its own properties based on the groups it's in.

    Okay, I guess I'll try to do it seperately...
    Although it still can't sense what text is in the combo box for some reason.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a general create object?

    How were you planning to import the tens of thousands of objects anyway? If you used MMF actives you would still need to import them all.

    You could load images from filenames externally and use the filenames as words.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a general create object?

    Use strings?
    Or some sort of string (Static Text, Text Blitter, etc)?

    That way you can create that and set the text at runtime.

  7. #7
    No Products Registered

    Join Date
    Dec 2008
    Location
    U.S.
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a general create object?

    I would make a sprite sheet and use the active object's "Load Frame" action. That would probably work better. Use an Alterable Value or Alterable String to note what object it is.

  8. #8
    No Products Registered

    Join Date
    Jan 2009
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a general create object?

    I don't quite understand these last 3 posts. I was trying to find some way to make it create a certain object based on something, like Create Object=name[AlterableStringA] or something, but there's no "Use a Calculation" button.

    Also I'm making each object separately, not importing...

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a general create object?

    Its not possible.

    But what I was saying is instead of Actives maybe you could have strings of some sort that you can change the text of at runtime. Then you would only need one I think.

    What I would do is have one object to create, that makes it simple. Then give it 32 directions and use 26 of them. See what I'm getting at? Then make a "word loop" to change their direction based on what character is at the loopindex. That could be found using Right$() and Left$().

    But sadly there is no way to create an object based on an expression (without the expression being a condition)

Similar Threads

  1. [BUG] Create object if flag is off, and assign something to the created object
    By Popcorn in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th January 2013, 11:01 PM
  2. 8 directions: make the object move due to a general event
    By Chokito in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 20th November 2012, 12:27 AM
  3. Possible to make the game to create, edit, combine, or change sprites?
    By Tsun in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd October 2012, 03:41 PM
  4. Why does "Create Object" make multiples instead of one item
    By rubes in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th May 2012, 11:01 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
  •