User Tag List

Results 1 to 8 of 8

Thread: Shooting accuracy

  1. #1
    No Products Registered

    Join Date
    Mar 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shooting accuracy

    Hi!

    I'm making a platform game in MMF2, and i have several enemies who fire at the player - however their shots are very unaccurate. The player can easily stand in "safe spots" from the projectiles.
    I've made it so the enemy will "shoot an object" in direction of "player", however for my game it's going to need to be pretty accurate, a lot more than it already is.

    Anyone able to offer a tip or two?

    Many thanks in advance!

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting accuracy

    that's because MMF2 uses 32 directions instead of traditional 360 directions. With a lot less of directions, there are spot inbetween the 32 values that will be these "safe spots".

    Only solution is to make a custom 360 movement for the bullets that'll work the way you want.

  3. #3
    No Products Registered

    Join Date
    Mar 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting accuracy

    Ah alrighty then Was hoping it wouldn't be the case but no worries!

    Thanks a lot

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting accuracy

    I honestly don't get why it uses the 32 directions, though, when everything else would (seem to) be just as easy to make

    but yeah, lots of people are crying in their sleep about it, but there's nothing that can be done. cosinus and sinus will be your best friends in this situation.

  5. #5
    No Products Registered

    Join Date
    Mar 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting accuracy

    Well... I'm pretty awful at math so that's no good... but I had a thought that should work... (I'm also a bit of a newb at MMF so I highly suspect it's quite horrific but it'll work...

    i.e, when enemy shoots, create 2 invisible actives at the players location. one tiny circle (A) and one big cirlce (B)
    Shoot bullet in direction of A
    Always > Bullet direction towards A
    Bullet collides with B, destroy A and B


    I'm sure there's an easier way but it seems to work, hehe

  6. #6
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting accuracy

    Quote Originally Posted by MechaBowser
    I honestly don't get why it uses the 32 directions, though, when everything else would (seem to) be just as easy to make
    i'd imagine it's because that's how many directions a 32-bit int can store: one for each bit (more could technically be stored but this way it allows you to be able to select multiple possible directions simultaneously)

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting accuracy

    There are some examples of 360 shooting around the forums, as well as the Bullet Widget may help...

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  8. #8
    No Products Registered

    Join Date
    Mar 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting accuracy

    ooh ta, i'll look into it

Similar Threads

  1. Aim at object- accuracy
    By Sterling7 in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 2nd August 2013, 08:04 PM
  2. Launching Accuracy
    By ad in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th April 2012, 02:00 AM
  3. Decimal Accuracy
    By netninja in forum File Archive
    Replies: 3
    Last Post: 5th July 2010, 02:46 PM
  4. 360 shooting
    By nick_Peoples in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd April 2010, 01:04 AM
  5. Shooting
    By Guitaristinmakin in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 12th August 2007, 03:00 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
  •