User Tag List

Results 1 to 8 of 8

Thread: Problem with attacking (using PMO)

  1. #1
    No Products Registered

    Join Date
    Dec 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with attacking (using PMO)

    Hello, im using the PMO object to make an action platform game. my problem when i make the script upon pressing key X play animation ..... but when i press X i play the first frame of my attack action.

    here is my script:


  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with attacking (using PMO)

    Event 10 is most likely resetting any attack animation back to 'stopped' - try adding a "Active object player: Animation Attacking is playing" and then negate it so it has the X in front. that should fix it I think.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with attacking (using PMO)

    Chaos's solution would work, However if you plan on having lots of diferent animations, you should NOT check whether its playing the attacking animation. Eventually you'd have giant event lists checking for all the possible animations to "protect" from turning to stopped or jumping or what have you.

    Instead. Create an anlerable value in your player character caled "state" or "stuck in move". Whenever you initiate an attack or any other animation that needs to be portected from reverting to stopped, or running or jumping, just set "stuck in move to 1.

    Now, go back to your event that makes the player character play the stopped animation and add: IF "stuck in move" is 0.

    Lastly, you'll need and event as follows for when every "protected" animation finishes: Animation "attack" has finished= set alterable value"stuck in move" to 0.

    This ends up nice and tidy with no giant events testing for every possible animation you want to protect one by one.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with attacking (using PMO)

    Yeah, I was only assuming he was using one attack animation.

    I use a different method entirely based on visibilities - but yeah, if there will be more than one attack animation, use Holymonkeys method. That will work

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eliyahu's Avatar
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with attacking (using PMO)

    I told Marioman the same thing you did in his other thread (I don't know why he made 2???).

    But he said he doesn't understand and wants an example.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with attacking (using PMO)

    I have a example files using PMO on my website for basic and advanced stuff. Should have everything on there. It's all commented and everything.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eliyahu's Avatar
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with attacking (using PMO)

    Actually I realized I do mine totally different.

    Here is how I prefer to do it:

    If "x" is pressed then do animation "attack"
    After animation "attack" is over go back to the stopped animation.

    Start of frame go to stopped animation

    This way upon every action necessary, the animation will change and automatically go back to the proper one.

    And for Marioman's game, I'd probably have the arrow keys and movement so you can only move if the animation "attack" is not playing. That's vital.

  8. #8
    No Products Registered

    Join Date
    Dec 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with attacking (using PMO)

    . thanks Yankovic that worked great. now i need help with the edge of my platforms.

    every time i jump on the corner of one of my platforms my character gets stuck in it

    to get what i mean look at what happens when you jump into an edge of my flying platforms:http://www.2shared.com/file/5365481/ff0d75fe/New_Folder__4_.html

Similar Threads

  1. 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
  2. Attacking waves
    By Bernardo3D in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th October 2009, 12:22 AM
  3. Attacking active object from TGF2 library
    By kmarshall in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 20th June 2007, 04:31 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
  •