User Tag List

Results 1 to 10 of 10

Thread: Zombie AI

  1. #1
    No Products Registered

    Join Date
    Oct 2008
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Zombie AI

    Hello, I was wondering if there was any way to create enimies that move twards you, like zombies, kind of like the enimies in this game:

    http://www.crazymonkeygames.com/fullscreen.php?game=Boxhead-More-Rooms

    any input is appreciated!

  2. #2
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jul 2008
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Zombie AI

    Yes, its possible.

  3. #3
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Zombie AI

    You could find their angle in relation to the player and every so often turn them to that direction. Then set their movement to go in the direction that they are facing.

  4. #4
    No Products Registered

    Join Date
    Oct 2008
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Zombie AI

    If I had them always face the main charachter, how would I make it so that they moved in the direction that they are facing?

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Zombie AI

    Set them to "Bouncing Ball" movement. They will always move at their speed in the direction they are facing.

  6. #6
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Zombie AI

    Quote Originally Posted by Random
    Set them to "Bouncing Ball" movement. They will always move at their speed in the direction they are facing.
    Or use the angle and some simple trig.

    +Always
    -Set X Position to X("Active")+Sin(Angle("Active"))*Speed
    -Set Y Position to Y("Active")+Cos(Angle("Active"))*Speed

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Zombie AI

    That's a bit more tricky with collisions though..

  8. #8
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Zombie AI

    Quote Originally Posted by Random
    That's a bit more tricky with collisions though..
    Well if fine collisions are needed, the Speed part can be taken out and it can be put into a fastloop, but Speed times. This way it is moving pixel by pixel, and you can check for overlapping on the loop.

  9. #9
    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: Zombie AI

    you could also switch the Sine part in your equation with Sin(Dir(Active)*11.25)

  10. #10
    No Products Registered

    Join Date
    Oct 2008
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Zombie AI

    AHHHH my head!

    but I think they bouncing ball movment will work fine for me! thank you all!

Similar Threads

  1. Zombie Crunch
    By Keith in forum iOS Released Games & Apps
    Replies: 5
    Last Post: 14th September 2013, 10:59 AM
  2. Zombie AI?
    By Pixzel in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 25th November 2012, 06:51 PM
  3. Zombie Swarm
    By Sumo in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 30th October 2011, 11:54 AM
  4. free zombie
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd November 2010, 08:38 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
  •