User Tag List

Results 1 to 10 of 10

Thread: Complexity of Movement

  1. #1
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Complexity of Movement

    Hi again, I was wondering if someone would be really nice and could upload a quick example for me or at least explain to me the steps (because I don't know how to pull this off) where an enemy moves around in curved lines toward the player but tries to keep its distance and when it's near the player it performs an attack. I want it to sit still at first and then when it activates it slowly increases its speed to full speed and near the end of its movement right before it attacks I want it to come slowly to a halt.

    My game is a tile by tile movement engine but this enemy is going to be one of the few that totally ignores the tile by tile law of the game.

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Re: Complexity of Movement

    Sounds like your movement contradicts itself...
    Quote Originally Posted by Corlen
    an enemy moves around in curved lines toward the player
    Quote Originally Posted by Corlen
    but tries to keep its distance.
    I assume the enemy doesn't attack on it's own, the player has to walk close to it?

  3. #3
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Complexity of Movement

    A spiral-like motion?

    X = Origin+Alterable Value B( "move" )*Cos(Alterable Value B( "move" )*Alterable Value A( "move" ))
    Y = Origin+Alterable Value B( "move" )*Sin(Alterable Value B( "move" )*Alterable Value A( "move" ))

    A = frequency (fixed)
    B = time (incrementing)

    There was another post a while back about a spiraling bullet?

  4. #4
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Complexity of Movement

    Quote Originally Posted by SortaCore
    Sounds like your movement contradicts itself...
    No it doesn't, I'll upload a picture of what I want.



    This is just one example of many possible movements I want the enemy (E) to do.

  5. #5
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Complexity of Movement

    Introducing some semi-AI would complicate the maths but basically it looks like a straight line and a half circle which is easy enough.

  6. #6
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Complexity of Movement

    Actually I meant that to look like an S shape instead of a straight line and then a half circle.

  7. #7
    No Products Registered

    Join Date
    May 2011
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Complexity of Movement

    why dont u generate random numbers and use that for direction ?

  8. #8
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Complexity of Movement

    Well I've got it sort of working the way I want it to with ball movement and direction calculator but the problem is I need a rotate away from direction function which direction calculator doesn't have. So I used look in direction of hero and then set its direction to its own direction minus 16 but now it does these little circles around the hero instead of smoothly going around in a circle.

  9. #9
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Complexity of Movement

    I have a Move by Letter example on my website. Maybe you can adapt that. Just an option.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  10. #10
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Complexity of Movement

    I'll check it out.

Similar Threads

  1. Movement synchronization issues (physics spaceship movement)
    By SecondSons in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th January 2014, 10:52 PM
  2. Is there a 'Frame Complexity' limit?
    By UltraHammer in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 25th October 2013, 01:19 AM
  3. Platform movement on Active objects using Nifflas' basic movement widget
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th October 2012, 02:16 AM
  4. Spaceship movement left and right trought bouncing ball movement instead 8 direction?
    By daryuss in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd May 2012, 09:33 PM
  5. Make a time machine run with lower time complexity
    By Pixelthief in forum Multimedia Fusion 2 - Technical Support
    Replies: 48
    Last Post: 12th March 2009, 10:10 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
  •