User Tag List

Results 1 to 2 of 2

Thread: Collision and pathing

  1. #1
    No Products Registered

    Join Date
    Dec 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Collision and pathing

    I would like two objects to either when in range or when they collide to stop then attack each other and then when no other units are in range continue on their path. I have looked everywhere and still have not found a solution. Should I use flags? fast loops? I do not know that much about either but if that is the way to go I will learn more about it. Any help or examples would be very helpful. Thank you in advance.

    -Lexicographer101

  2. #2
    No Products Registered

    Join Date
    Dec 2008
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try putting an invisible circle around each character, when the circles collide they can be told to stop and attack. If a character is destroyed destroy the circle too. Then when there are no enemy circles near your hero's then he can carry on moving. For eg. Circle collides with player - set player global value A to 1. With all his movement events make it so global value A must equal 2. That way he'll stop whenever he gets in range. No way to run away from battle I think that helps?

Similar Threads

  1. External Files and Pathing
    By Rickshaw in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th May 2012, 11:23 AM
  2. [ Bug ] Collision-Bug
    By Pharanygitis in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 18th March 2011, 08:52 AM
  3. Collision Help
    By Sumo in forum Lacewing
    Replies: 17
    Last Post: 19th November 2009, 07:02 AM
  4. Collision Bug
    By dragonguy in forum File Archive
    Replies: 4
    Last Post: 6th July 2008, 05:44 PM
  5. Collision Bug
    By rocko in forum File Archive
    Replies: 5
    Last Post: 1st July 2006, 07:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •