User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17

Thread: Enemies that follow walls

  1. #11
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    EE's Avatar
    Join Date
    Sep 2009
    Posts
    200
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemies that follow walls

    I made an example using my suggested idea(funny story, I discovered that the old project I was talking about used a completely different method), now I'm very tired and very new to uploading examples, so here;

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=230605&#Post230 605

    The movement "jerks" in the leftmost/rightmost point of the cross-shape. I have an idea on how to fix it, however, I'm way too tired right now. Be sure to check the animations and values of the crawler so you understand what's going on. Sorry for the lack of proper commenting!

    //EE

  2. #12
    No Products Registered

    Join Date
    Apr 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemies that follow walls

    Wow thanks guys, loads to work with there. EE, I tried your first suggestion and got stuck at some point (the enemy went along the top of a box, then the side, then the bottom, then.. flew off into space). I haven't tried your expanded one but I'll have a play around with it as there's some stuff in there I don't understand much yet, like the use of sine/cosine and the add to debugger command..

    Eliyahu, yours seems to be working nicely so I think I'll base it around that for now. I want to make it so that rather than a single object, it's a bunch of bubble-like enemies that crawl around as a group, and I think I can handle the rest of it. I'll upload it when done

  3. #13
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    EE's Avatar
    Join Date
    Sep 2009
    Posts
    200
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemies that follow walls

    Ok, however, if you're only in need of 4 directions 50~ events instead of like seven is quite overkill.
    Of course, you decide! ^^
    You're the one making the game! ^^

    I'm gonna update my example when I get the time, fix the jerk and add smoother direction changes.

    //EE

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eliyahu's Avatar
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemies that follow walls

    Agreed with EE, the example I posted is for following patterns that can be square, diagonal, rounded, etc. If all you need is 90 degree angles it's simple:

    Move forward until you hit a wall
    Turn 90 degrees
    Repeat

  5. #15
    No Products Registered

    Join Date
    Jul 2006
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemies that follow walls

    I have this working perfectly in my game. And yes it was me that contributed before, or at least i did a few years back. I'll try to get up an example if i can extract it out of my game.

  6. #16
    No Products Registered

    Join Date
    Jul 2006
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemies that follow walls

    Mine doesn't require any advanced math, but it'll do both inside and outside movement smoothly, in the cardinal driections.

  7. #17
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemies that follow walls

    Quote Originally Posted by Eliyahu
    Props to Jacob (?).
    Ah yes, I remember that. I made the engine, and you managed to kill the bug that was plaguing me to the point where I released it pretending I hadn't seen it :P
    Teamwork!

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Enemies that follow player???
    By MrXkill in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 18th April 2011, 03:49 AM
  2. Enemies getting stuck in the walls when thrown
    By mobichan in forum File Archive
    Replies: 2
    Last Post: 7th May 2009, 05:08 PM
  3. thrown enemies not detecting other enemies
    By mobichan in forum File Archive
    Replies: 4
    Last Post: 8th April 2009, 06:40 PM
  4. how do you make enemies that follow you?
    By zuloo in forum The Games Factory 2 - Technical Support
    Replies: 9
    Last Post: 5th May 2008, 11:32 PM
  5. Enemies that bounce into walls when hit?
    By machrider in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd May 2007, 07:33 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
  •