User Tag List

Results 1 to 3 of 3

Thread: attack when facing enemy only

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Sep 2008
    Location
    Melbourne, Australia
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    attack when facing enemy only

    I have melee attacks that trigger when overlapping the enemy. I would like them to only trigger when the player is facing the enemy.

    How do I do a check to see if an active is facing another active?

    I understand it may have something to do with using the expression dir("enemy") under 'compare direction of object', is that correct?

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attack when facing enemy only

    Try This:

    if abs(Dir("Player")-16) = Dir("Enemy")
    - Attack Events

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Sep 2008
    Location
    Melbourne, Australia
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attack when facing enemy only

    That works beautifully, thank you wizkidweb

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. Is Angle facing Left or Right?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 16th October 2012, 09:09 PM
  3. Player attack nearest enemy
    By SwabiDude446 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th December 2010, 10:54 PM
  4. Spotlight where the camera is facing
    By dascribe in forum OpenGL
    Replies: 1
    Last Post: 14th June 2010, 05:07 PM
  5. Facing difficulties with rSDK
    By sss in forum Extension Development
    Replies: 1
    Last Post: 9th November 2007, 04: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
  •