User Tag List

Results 1 to 7 of 7

Thread: attack on sight?

  1. #1
    No Products Registered

    Join Date
    Oct 2009
    Location
    New Zealand
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    attack on sight?

    Is it possible to make a character(not the player but npc) to attack the player when he enters a certain radius?

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: attack on sight?

    A simple solution is to make an active circle. Set it to always follow your character. Make it invisible. When the NPC overlaps the circle, attack character.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    Tisnart's Avatar
    Join Date
    Feb 2008
    Location
    On, Canada
    Posts
    1,073
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: attack on sight?

    Hey delta9857,
    I have a LOS widget that I have been working on for a project.
    Actually I have 3 versions of it, I'm not ready to release 2 of the move advanced ones yet, but your more than welcome to use the first one if you want. It would be perfect for the solution that nivram mentioned.

    It's very basic and simple to use with a few added features:
    - 3 LOS Modes > 360 view, Peripheral view and FlashLight view
    - You can adjust the size of view
    - Use it for Player or NPC
    - Have multiple LOS for different NPC
    Anyway let me know if this is something you would like to use

    Gerald

  4. #4
    No Products Registered

    Join Date
    Oct 2009
    Location
    New Zealand
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attack on sight?

    @nivram

    Ive got the active circle, its invisible & attached to my character. Ive created the event (NPC overlaps active circle) now how do i make the NPC attack the player.(ive got it so all enemies take off 1 life if they touch the character

  5. #5
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: attack on sight?

    Move the enemy towards the character. Maybe by the ball movement?

    Enemy overlaps circle
    >Enemy: look towards character

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  6. #6
    No Products Registered

    Join Date
    Dec 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attack on sight?

    Hello all,
    I'm a teacher using this for a video game design class at the middle school level, and had a student ask me almost this exact question today.

    If you could elaborate on this I'd greatly appreciate it. I made the active circle, but first, how do I attach it to the character, and second, how do I make it transparent?

    We did a work around where the enemies were just continually firing at the player using the every x seconds command, then put walls to limit the effect, but it was somewhat unsatisfactory (though it brought back some great memories of Rush N Attack).

    Thanks much for the help


    Edit:
    Ahh.. found out how to attach it thanks to another post by Nivram. Using the always command and setting it to position 0,0 of characacter. Now just looking to make it invisible.

  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: attack on sight?

    Attach circle to character:
    Always set position to character at 0,0
    Make sure the hot spot on the character and circle are placed at the center.

    Circle invisible:
    Start of frame
    >circle: make invisible

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Trigger Enemy Attack at......
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th June 2017, 03:26 AM
  2. problem with attack animations
    By ramprage in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 4th September 2009, 03:23 PM
  3. attack when facing enemy only
    By ionside in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th November 2008, 07:38 PM
  4. Charge Attack System Example
    By Atom in forum File Archive
    Replies: 1
    Last Post: 28th October 2008, 10:58 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
  •