User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: Target Closest Enemy or Multiple Enemies

  1. #11
    Clicker Multimedia Fusion 2 Developer

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

    Re: Target Closest Enemy or Multiple Enemies

    Quote Originally Posted by LB
    That's a great example, Dynasoft! I especially like how the plasma bullets don't travel in a straight line and curve towards the next target after destroying one.
    Thanks

    They just head directly for the targeted enemy. Because the enemy is moving, they curve. With a bit of effort you can get them to head on a direct intercept course, or smooth off their turning so that they curve even nicer.

    You could extend the example by replacing these lines:
    Fire 1 pressed:
    +Restrict for 20/100
    -Shoot bullet

    TargetID of Player != -1
    +Fixed of Enemy = TargetID of TargetID("Player")
    -Bullet: Look in direction of Enemy

    With these:
    Fire 1 pressed:
    +Restrict for 20/100
    -Shoot bullet
    -Set TargetID of Bullet to TargetID("Player")

    TargetID of bullet != -1
    -Start foreach loop for bullets

    On foreach loop for bullets
    +Fixed of Enemy = TargetID("Bullet")
    -Bullet: Look in direction of Enemy

    Then the bullets will only home on the target they were originally fired at. I left it the simpler way, and it also looks cool!

  2. #12
    No Products Registered

    Join Date
    Mar 2011
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Target Closest Enemy or Multiple Enemies

    I cant open it. Where can I download the select object extension not in .mfx form? My computer cant open .mfx.

  3. #13
    Clicker Multimedia Fusion 2 Developer

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

    Re: Target Closest Enemy or Multiple Enemies

    You don't open the .mfx, just extract the .zip file directly into your MMF directory, keeping folders intact. It should place a (different) Select.mfx in the Extensions folder and the Data\Runtime folder.

  4. #14
    No Products Registered

    Join Date
    Mar 2011
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Target Closest Enemy or Multiple Enemies

    How do I do that??

  5. #15
    Clicker Multimedia Fusion 2 Developer

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

    Re: Target Closest Enemy or Multiple Enemies

    The easiest way is to open the zip file, open your MMF folder, and drag everything from the zip into your MMF folder (allowing anything it asks you about).
    EDIT: Your MMF folder is probably C:\Program Files\Multimedia Fusion 2
    EDIT2: Most extensions install this way. There are quite a lot of them, and they can be very powerful tools if you take time to learn. Also make sure your MMF is up-to-date by installing the latest build, most extensions won't work if you haven't updated MMF at all.

    EDIT3: Apologies if this has thrown you in at the deep end a bit, I see you're only new here, but programming anything involving "intelligence" (in this case, choosing a target) is complex.

  6. #16
    No Products Registered

    Join Date
    Mar 2011
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Target Closest Enemy or Multiple Enemies

    Thanks! I think I got it to work haha

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Pick the closest enemy
    By StardustSpeedman in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th July 2012, 08:27 AM
  2. Only added score of single enemy when destroy multiple enemies at a time.
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 11th April 2012, 12:26 PM
  3. Multiple enemies
    By Blackwolfdave in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th February 2011, 02:55 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
  •