User Tag List

Results 1 to 2 of 2

Thread: Problem with shooting in direction of an object

  1. #1
    No Products Registered

    Join Date
    Nov 2010
    Location
    Indiana, USA
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with shooting in direction of an object

    Hey there,

    I have a player controlled character (an active object) that can shoot a bullet in the direction it is facing (either left or right) when a key is pressed. For some weird reason I can't figure out, there are instances when the bullet is shot in a downward-like direction. This occurs when pressing the key after the player does one of the following:

    When the player jumps straight into the air and lands.
    When the player has not moved when the frame begins.

    This also happens when jumping either left or right, and pressing the key rapidly when in the air.

    I don't want this to happen, and I can't seem to find a fix. I'm assuming this is a common issue but I can't seem to find anything, so I'm sorry if this issue has been adressed elsewhere.

    Thanks for the help!

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with shooting in direction of an object

    This is because the player character is actually facing downwards due to the direction he just moved.

    There are various fixes, from setting/clearing a flag when left/right are pressed and shooting left/right based on whether that flag is set or not, to using a custom movement which properly decouples movement direction from facing direction.

Similar Threads

  1. eight direction movement and shooting problem
    By brett in forum Multimedia Fusion 2 - Technical Support
    Replies: 24
    Last Post: 17th May 2012, 09:36 PM
  2. 8 Direction Movement and shooting problem
    By IY5 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 2nd February 2010, 02:12 AM
  3. Shooting direction inaccurate
    By PengeyPenguin in forum The Games Factory 2 - Technical Support
    Replies: 15
    Last Post: 9th August 2009, 09:40 PM
  4. Shooting Direction Issue
    By AgentJackSeven in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th June 2009, 01:21 AM
  5. Shooting something in the direction of the mouse?
    By Root in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st May 2009, 10:12 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
  •