User Tag List

Page 9 of 9 FirstFirst ... 7 8 9
Results 81 to 88 of 88

Thread: Self enemy movement. HELP!!!

  1. #81
    No Products Registered

    Join Date
    Feb 2008
    Location
    Weston-super-mare
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Self enemy movement. HELP!!!

    Hmm lets see..... if i use these events and objects:

    Object: Alarm sensor (Hidden object)

    *Start of frame
    -Start loop "Jump" abs(AIJump("Sapphire crawler"))

    *If AIJump ("Sapphire crawler") <0
    +On loop "Jump"
    -Add 1

    If AIJump ("Sapphire crawler") >0
    +On loop "Jump"
    -Subtract 1

    *If AIJump <0
    -Set y position to 1

    *IF AIJump >0
    _Set y position to -1

    *If ("Guardian") Overlaps ("Enemy sensor")
    -Add 1 to AIJump

    *X If ("Guardian") Overlaps ("Enemy sensor")
    -Subtract 1 from AIJump

    In summary that should make it hit thr floor, but of course without the right event, thats right through the floor it goes.

    So the next event line would be:

    *If AIJump =0
    -Set y position to 0

    I hope that will do.

    See i told you i'm a quick learner.

  2. #82
    No Products Registered

    Join Date
    Feb 2008
    Location
    Weston-super-mare
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Self enemy movement. HELP!!!

    Right as soon as i get down to eventing the AI'ing the crawlers, the idea drops right outta my head.

    I KNOW it's possible to do it, and i know HOW to do it, but where does the idea go.

    I think writing it down should help.

    Then when the first to levels are finished i can finally get down to designing Prisia.

  3. #83
    No Products Registered

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

    Re: Self enemy movement. HELP!!!

    Yep. Writing down is important. During writing down you might actually notice that your idea wasn't as clear as you thought (which is why it vaporized once you got close to it)

  4. #84
    No Products Registered

    Join Date
    Feb 2008
    Location
    Weston-super-mare
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Self enemy movement. HELP!!!

    YES The crawlers have been AI'ed just like i wanted, the odd thing is when they are destroyed there destroy animation doesnt play out. ?

  5. #85
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Self enemy movement. HELP!!!

    Yes there is a bug, you cant use something like "animation disappearing has finshed --> destry object" that wont work, it will stop on the last frame, so you need to compare to the animation frame as well, like "animation frame = 19". That should work.

  6. #86
    No Products Registered

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

    Re: Self enemy movement. HELP!!!

    Or use a different animation and then do "animation has finished"->destroy.

  7. #87
    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: Self enemy movement. HELP!!!

    Quote Originally Posted by Random
    abs makes a value positive. So abs(-10) = 10.
    I always thought it made a value = 1
    (-5=-1 5=1)

    Guess I was wrong.....

  8. #88
    No Products Registered

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

    Re: Self enemy movement. HELP!!!

    What you mean is normalize() (for vectors) or sign() for single values. But MMF doesn't have either.

Page 9 of 9 FirstFirst ... 7 8 9

Similar Threads

  1. Enemy Movement
    By jbrown2177 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th August 2012, 09:07 PM
  2. help on enemy movement
    By Pixzel in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th February 2011, 09:30 PM
  3. Enemy Movement
    By Na in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 28th April 2010, 11:27 PM
  4. Enemy Movement
    By LuZeke in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th May 2008, 09:51 PM
  5. AI Enemy movement.
    By Martin_R_Bodger in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th February 2008, 11:03 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
  •