User Tag List

Results 1 to 4 of 4

Thread: A question regarding attacking/animations/variables

  1. #1
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    A question regarding attacking/animations/variables

    Hey! I know my way around pretty good in fusion 2/2.5. I'm not really a coder by nature though and, even though I always get stuff working I might tend to do things in a clumsy way maybe so I thought I should ask here before diving in to my battle system for my game.

    In my rpg you will be able to have different firearms. Handgun,shotgun,assaultrifle etc. What is the best way to work with the attackanimations? "The only way this can be done" in my head is that you have a weapons variable. 1=handgun,2=shotgun and so on. So upon pressing the attack button on the GUI plus weapons variable=1 the handgun animation plays, if you press attack and variable=2 the shotgun animation plays instead. Is there a simpler way to do this so I don't have to make all those events "if weapons variable=1,=2,=3,=4" etc. could I save myself some time by doing it differently? I must tell MMF somehow to play the correct animations upon pressing the attack button of course but maybe someone, more experienced clicker can tell me a better way.

  2. #2
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    944
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    My current RPG is sort of similar in that the hero can use many weapons and has many different animations.

    The only way I could figure it out though was to use the long way. Very short story of it looks like this:

    ----

    If animation(Sword) isn't playing
    +animation(Axe) isn't playing
    +all the other weapons aren't playing
    +walking or jumping animations aren't playing
    -> Change animation to "Stopped"

    Then you have:

    If weaponEquipped = "Sword" and player presses the attack button then change animation to "Sword"
    If weaponEquipped = "Axe" and player presses the attack button then change animation to "Axe"
    and etc for all possible weapons and stuff

    And then at the end you have:

    If (all possible weapon animations) and (all possible movement animations) are over then
    -> Change animation to "Stopped" again

    I program a lot like how you sound like you do. You can normally get the job done but it's probably not the best or most efficient way.
    We should start a club! LOL

  3. #3
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Haha yeah the "bunch of ifs" club :-D oh well it's no big deal really. Sure you will find different weapons but some of them will be the same type so i can use only one shotgun animation even if you have 4 different shotguns. I'm not gonna be THAT picky about it hehe. Thanks for answering :-)

  4. #4
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    944
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yeah, like the old "If / then" or "If / Else" or even the very old "Select Case"..
    Gheesh I haven't done that sort of programming in more than 10 years easy. I probably forgot it all LOL.

Similar Threads

  1. Got a new question about variables
    By 2310 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 5th September 2014, 02:10 PM
  2. Attacking Animation using a Static Movement
    By KCHedgehog in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th October 2009, 12:04 AM
  3. Attacking waves
    By Bernardo3D in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th October 2009, 12:22 AM
  4. Problem with attacking (using PMO)
    By marioman in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 19th April 2009, 05:45 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
  •