User Tag List

Results 1 to 9 of 9

Thread: Character Weapon Switching on the fly? {With PMO}

  1. #1
    Clicker Fusion 2.5
    darkmanx_429's Avatar
    Join Date
    Jun 2010
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Character Weapon Switching on the fly? {With PMO}

    Does anyone have (or know of) a good mfa example of this? I need a little help with things. I have been working on my fan-game and the main character starts off into whip mode and then after a button press goes into gun mode. The way that I did it was to make two active objects of my main character, one with all his whip movements and then one with all his gun moves. I also made 2 different groups on my event editor, one for whip-mode and one for gun-mode. I assigned a button press and then it switches to the 2nd active object in gun-mode (and in process destorys the 1st active object) and then I just enable my gun-mode group on the event editor. Both active character objects share the same PMO. The problem is that when I try to reverse the method to go back into whip-mode, it doesn't work. I also tried using behaviors and then setting both the whip and gun animations into just one active object but it doesn't work because I can't select any of my custom animations (like the gun-equip animation) while in the behavior editor. I was also thinking couldn't I assign a counter for 1 mode and then when it goes to a certain number after a button press it switches to the other mode and then vise-versa, but I am not sure exactly how to set that up in the event editor..help! I am thinking that there is probably an easier way to do this that I am not seeing....

  2. #2
    Clicker Fusion 2.5
    darkmanx_429's Avatar
    Join Date
    Jun 2010
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    heello?

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Verbage's Avatar
    Join Date
    Dec 2010
    Location
    Lakewood, CO, USA
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's what I'd do. Now I didn't read all of this because it was a bit rambly, but this is what I understood: You need to swap between whip mode and gun mode with your character.

    Here's what to do:
    1. Use an object that you can set a flag on. Either your character object or a seperate one.
    2. Make whatever trigger that swaps the weapon toggle that flag. Active -> Alterable Values -> Flags -> Toggle -> (any number you need)
    3. Create a condition for each state of the flag (on or off). Make the actions disable one group of events and enable the other (under system drop down in the actions menu).

    Hope this helps.

  4. #4
    Clicker Fusion 2.5
    darkmanx_429's Avatar
    Join Date
    Jun 2010
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Verbage View Post
    Here's what I'd do. Now I didn't read all of this because it was a bit rambly, but this is what I understood: You need to swap between whip mode and gun mode with your character.

    Here's what to do:
    1. Use an object that you can set a flag on. Either your character object or a seperate one.
    2. Make whatever trigger that swaps the weapon toggle that flag. Active -> Alterable Values -> Flags -> Toggle -> (any number you need)
    3. Create a condition for each state of the flag (on or off). Make the actions disable one group of events and enable the other (under system drop down in the actions menu).

    Hope this helps.
    Thanks for the response. Yeah, I probably rambled on for a bit but I wanted to provide as much info as possible to what I am talking about. I have it set up kinda like you said by using groups. The problem lies when I try to switch back to Whip mode. It doesn't work.I also tried using behaviors and then setting both the whip and gun animations into just one active object but it doesn't work because I can't select any of my custom animations (like the gun-equip animation) while in the behavior editor. I was also thinking couldn't I assign a counter for 1 mode and then when it goes to a certain number after a button press it switches to the other mode and then vise-versa, but I am not sure exactly how to set that up in the event editor..help! I am thinking that there is probably an easier way to do this that I am not seeing....

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Verbage's Avatar
    Join Date
    Dec 2010
    Location
    Lakewood, CO, USA
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Active -> Animation -> Change

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Wouldn't switching characters be on the same principle? I have an example of that on my website. Maybe that would help?

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    Clicker Fusion 2.5
    darkmanx_429's Avatar
    Join Date
    Jun 2010
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nivram View Post
    Wouldn't switching characters be on the same principle? I have an example of that on my website. Maybe that would help?

    Marv
    That would prob help alot Marv. Also, is it possible to do the the switch by assigning a button press and using a counter?

  8. #8
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Yes. Look under S

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  9. #9
    Clicker Fusion 2.5
    darkmanx_429's Avatar
    Join Date
    Jun 2010
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nivram View Post
    Yes. Look under S

    Marv
    I just looked through your example ha, why didn't I think of that? It's actually similar to how I did my character select...

Similar Threads

  1. Weapon use tutorial or example?
    By gamer123 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th June 2012, 10:38 AM
  2. A Sling weapon
    By Tiger in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 1st May 2012, 11:44 AM
  3. A few weapon problems!
    By RealGameMaker in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 20th August 2009, 06:45 AM
  4. Character Switching Example
    By nivram in forum File Archive
    Replies: 2
    Last Post: 9th December 2008, 04:43 PM
  5. switching the player's character
    By Ninjustsu in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th March 2008, 08:49 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
  •