User Tag List

Results 1 to 4 of 4

Thread: Platform problem every time

  1. #1
    No Products Registered

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

    Platform problem every time

    Hi guys! im having so much trouble making a platform game.....basically i want to tell the guy to SHOOT an object when i press space bar, anyway that works fine!...if i turn to left and shoot PERFECT, if i turn to the right and shoot PERFECT again!

    however if i jump in the air and then LAND, what happens next when i press shoot is weird! shoots a bullet downwards toward the floor????......so in other words i always have to tap the direction im facing before trying to fire (after jumping) can anybody help? ive tried all sorts of clever tricks to sort this out but it just wont have it!

    im using the ZEB main guy from the GF1 (i imported him into 2) .....i have figured out that just before landing on the ground, the animation is playing "FALLING" and what must be happening is its automatically setting the direction to DOWN....can anybody help?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Platform problem every time

    That's because you tell it to shoot in the direction the character is facing, and after a jump he is facing down. If you want more control, you have to put some more information into the events. If you only want it to shoot left and right, you could detect which direction key that was pressed last. You can use a flag to set direction to either right or left.

    * upon pressing right
    - guy: set flag 0 to On

    * upon pressing left
    - guy: set flag 0 to Off

    * upon pressing shoot key
    + guy: flag 0 is on
    - shoot right

    * upon pressing shoot key
    + guy: flag 0 is off
    - shoot left


  3. #3
    No Products Registered

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

    Re: Platform problem every time

    I have just tried what you said and it worked PERFECTLY, thank you very much for the help!!!!! i guess i should really try to understand flags more, and what they can do

    thanks again

    happy holidays

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Platform problem every time

    Flags and Alterable Values are some of the most powerful features of MMF.

Similar Threads

  1. Problem with installing Multimedia Fusion 2 for second time
    By akmacic in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th December 2013, 08:11 AM
  2. Problem using 2 chars with collisions and a movable box at the same time
    By Matriax in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 14th January 2013, 08:40 AM
  3. Custom time-based platform movement
    By Olivier in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 15th October 2008, 11:27 PM
  4. Custom time-based platform movement
    By Olivier in forum File Archive
    Replies: 5
    Last Post: 13th October 2008, 03:05 PM
  5. Date & time object problem
    By crugh in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th June 2007, 12:32 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
  •