User Tag List

Results 1 to 3 of 3

Thread: Pick the closest enemy

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2010
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pick the closest enemy

    Hi All!

    The main character in my game can shoot an attack that is supposed to automatically hit the nearest enemy. How can I do this in MMF2?

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You can set an alterable value in the enemies that is the distance between the projectile and the enemy, and then use the Select Object extension to select the enemy whose value is the lowest, then have the projectile target that enemy. There are many examples similar to this where multiple attacking-things target the nearest of multiple enemies, you can search around if you need some solid events. There may also be examples on Nivram's website.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2010
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much, you've been a great help!

Similar Threads

  1. Number closest to 0
    By Skyhunter in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 27th October 2012, 03:27 AM
  2. Finding the closest value...
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th June 2012, 07:27 PM
  3. Target Closest Enemy or Multiple Enemies
    By Gatesmi in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 25th March 2011, 08:34 PM
  4. Tower Defence "Shoot Closest Enemy" Example
    By netninja in forum File Archive
    Replies: 5
    Last Post: 28th October 2009, 02:33 AM
  5. Finding Closest Enemy example
    By TreeHugger in forum File Archive
    Replies: 1
    Last Post: 2nd February 2009, 03:35 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
  •