User Tag List

Results 1 to 6 of 6

Thread: Enemy is following the player

  1. #1
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Enemy is following the player

    If the player is on the left side of enemy, I want the enemy walk to the left, but if the enemy is on the right side of enemy, I want the enemy walk to the right. How can I do that?

  2. #2
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Location
    Suffolk, UK
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy is following the player

    Compare the player X to the Enemies X. If players is lower, set enemies direction to left, if it's higher set enemies direction to right

  3. #3
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy is following the player

    Thanks! It works But if the player is on a platform above the enemy, I want the enemy climb the ladder to the platform where player is. Is that much of the same?

  4. #4
    Clicker Fusion 2.5 Developer

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

    Re: Enemy is following the player

    Not exactly. One solution is to use the pathfinding object...

  5. #5
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy is following the player

    I made it, but it's not perfect. You can look at the file here

    http://www.mediafire.com/?83fds0v39da

  6. #6
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy is following the player

    But I think pathfinding object is much better. Does someone know how to use it?

Similar Threads

  1. enemy follow player?
    By Viewtiful in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd January 2011, 06:43 PM
  2. Player attack nearest enemy
    By SwabiDude446 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th December 2010, 10:54 PM
  3. Enemy Follows Player Example
    By Ryan in forum File Archive
    Replies: 5
    Last Post: 25th February 2010, 02:20 PM
  4. Enemy/Player AI
    By artician in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 17th May 2008, 03:26 AM
  5. Moving an enemy towards the player
    By Jason in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th January 2008, 01:22 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
  •