User Tag List

Results 1 to 3 of 3

Thread: enemies

  1. #1
    No Products Registered

    Join Date
    Jun 2010
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    enemies

    is there a way i can make enemies follow my player and attack him but jumping over obstacles as well if so how

  2. #2


    Join Date
    May 2010
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: enemies

    Hmm is your game a 2d platformer? Or is it a top down game? I'm guessing its a side-scroller platformer. You could just have a check against the players x direction, and if the enemy's x is less then it faces right, if more it faces left. Then when it collides with an obstacle make it move up until it doesn't collide. Use fastloops to test for collision (so the object overlaps technically, but doesn't look like it overlaps).

    I found this method the best way to do this:

    Basic Enemy Movement

    This mfa does work for moving enemies but it has a bug with mutiple copies of the same enemy, a sit gives commands to all of them even if one of the isn't on the platform or falling.

    Look at my fastloops and how they detect if it overlaps, moves it, and then moves it back out of the overlap (so it doesn't actually overlap on screen).

    Watch the fastloop tutorial and it will help ALOT. It actually is pretty easy to get the hang of and is well worth the time.
    It's like 8 minutes long, and it doesn't have a pause button, so watch it when you don't need to pause or you will have to re-watch to get back to where you were.

  3. #3


    Join Date
    May 2010
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: enemies

    Use an invisible circle that follows the main player to detect if the enemies overlap it to see if they are in range to attack. Then play the animation for attacking, and assign damage and effects to the player.

Similar Threads

  1. How to do Enemies?
    By Corlen in forum Lacewing
    Replies: 4
    Last Post: 18th April 2012, 06:59 PM
  2. PMO for enemies
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 29th May 2011, 05:00 PM
  3. Enemies
    By WareWolff in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th June 2010, 06:48 AM
  4. thrown enemies not detecting other enemies
    By mobichan in forum File Archive
    Replies: 4
    Last Post: 8th April 2009, 06:40 PM
  5. enemies
    By spartan117 in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 7th February 2007, 09:05 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
  •