User Tag List

Results 1 to 9 of 9

Thread: How can I set enemy object to follow my character?

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I set enemy object to follow my character?

    Please can you tell me how can I set enemy object to follow my character?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: How can I set enemy object to follow my charac

    The simplist way:
    [events]
    * Always
    -(Enemy): Look at (0,0) from (The Player)
    [/events]
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I set enemy object to follow my charac

    Uhhh, It's a bit more complicated than that...

    How do you expect us to answer that quesion? Give us more information, like what kind of game it is.

    EDIT: Whoops, I posted at the same time as Joshtek.

    That still doesn't make the enemy follow the player.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: How can I set enemy object to follow my charac

    Quote Originally Posted by LazyCoder
    That still doesn't make the enemy follow the player.
    ...It'd need bouncing ball movement and to be moving and for it to be a top-down game for it to work. It was the best I could come up with on such little information.
    .:::.Joshtek.:::.

  5. #5
    No Products Registered

    Join Date
    Oct 2006
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I set enemy object to follow my charac

    The enemy (the dog) has to follow my moving character (black cat) on the left/ on the right of the screen

    How can I do?

    Thanks


  6. #6
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I set enemy object to follow my charac

    Basically, test to see whether the dog is to the left or right of the player's cat ("if X of "Dog" < X of "Cat"" for being on the left). If the dog is on the left, set its direction to right - if it's on the right... you get the idea.

    That's the basic principle of it.

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I set enemy object to follow my charac

    Woa, The Thinker is like the only person on this forum with an avatar! lol!

  8. #8
    No Products Registered

    Join Date
    Oct 2006
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I set enemy object to follow my charac

    Quote Originally Posted by LazyCoder
    Woa, The Thinker is like the only person on this forum with an avatar! lol!
    Yeah!

  9. #9
    No Products Registered

    Join Date
    Oct 2006
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I set enemy object to follow my charac

    Quote Originally Posted by DavidN
    Basically, test to see whether the dog is to the left or right of the player's cat ("if X of "Dog" < X of "Cat"" for being on the left). If the dog is on the left, set its direction to right - if it's on the right... you get the idea.

    That's the basic principle of it.
    It works thanks!

Similar Threads

  1. How do I get the screen to follow my character?
    By emberjed in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd September 2012, 04:39 AM
  2. enemy follow player?
    By Viewtiful in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd January 2011, 06:43 PM
  3. Partially follow character?
    By Ausomeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st May 2010, 04:44 PM
  4. How do i make one character follow another?
    By Gummy in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 5th March 2010, 02:06 AM
  5. Enemy Follow Help
    By brawler12345 in forum File Archive
    Replies: 3
    Last Post: 16th July 2008, 11:34 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
  •