User Tag List

Results 1 to 4 of 4

Thread: Help with Alterable Values and Object Creating

  1. #1
    No Products Registered

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

    Help with Alterable Values and Object Creating

    Alright, what I want to achieve is pretty complicated, so I'll try to explain it as simple as possible.

    I want to add some sort of "Multiplayer Mode" to my game (only some little stuff, so single player doesn't bore you too much) and I wanted to make a character selection for that. I planned to assign a global alterable value for that, for example: "Player 1 Char" equals "12" let's say 12 is the ID of the character Frank.

    So now I put the condition in that the game creates the "Frank"-Object so we can see his graphic.

    NOW MY PROBLEM FOLLOWS:

    I know that I can put in a condition for the object to be created (If Player 1 Char = 12, create Frank...) but how do I handle the rest?

    For example: If Player 1(Frank) gets hit, how does the system know that it needs to change the health of FRANK and not of Joseph or sb else? I would need something that loads objects like that:

    Player 1 ID = 12
    Now there are objects named like that:

    Char1
    Char2
    Char3

    And so on.

    Now the program should do like "Create Char{Player 1 ID}" and if a Player gets hit I could do "Subtract from Char{Player 1 ID} HP 1" or sth like that.

    ----------------------------------

    I know this sounds a lot of confusing, and it really is (to me) because I simply don't know what to do know. If you know how to achieve this, or if you know another way (maybe easier), please let me know as soon as possible.

    Thanks!

  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)

    Re: Help with Alterable Values and Object Creating

    Put them in a qualifier (eg "Player") and make all your actions, conditions, and expressions with that qualifier. Note that qualifiers do not let you rename the alterable values, so you may need a comment in your code that says A -Health, B - Hunger, and so on.
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

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

    Re: Help with Alterable Values and Object Creating

    Yea but how do I put everyone of them into a different qualifier for each one?

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

    Re: Help with Alterable Values and Object Creating

    What? No, you need to put them all in the same qualifier so that MMF2 can always select the correct one to deal with.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Alterable Values for the String Object
    By DukeHighway in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 4th December 2010, 09:56 AM
  2. Alterable Values not showing up in imported object
    By CKX in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 8th October 2008, 04:29 PM
  3. String object is missing alterable values
    By Nick in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 17th May 2008, 05:07 PM
  4. Save Game Object: alterable values bug
    By thewreck in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th May 2007, 08:28 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
  •