User Tag List

Results 1 to 3 of 3

Thread: What type of movement do I need for this?

  1. #1
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)

    Join Date
    Sep 2007
    Location
    Austria
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What type of movement do I need for this?

    Hi. Another day, another question.

    My monster should not use path movement and walk a drawn path but there should be the chance of direction changes.

    The monster starts at x and should walk to 1. If the monster collides with waypoint 1 a random number is generated. The monster can either reverse and walk towards 2 or walk down to 3.
    When it reaches 3 it either walks to 4 or walks back to 1.

    1..x.2
    ......
    ......
    3....4

    This is not difficult. I know the basics but the ball movement does not work. I only need four directions...but despite high bouncing security and given directions the monster sometimes bounces in another angle and gets off the possible track between 1, 2, 3 and 4.

    What movement do I need?

  2. #2
    No Products Registered

    Join Date
    Apr 2008
    Location
    Miami, Florida
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What type of movement do I need for this?

    You can still use the ball movement all you have to do is:

    +Monster collides with waypoint 1
    +1 chance out of 2 at random (this is under the special conditions)
    -Set Direction of Monster to (Direction to point 2)

    +Monster collides with waypoint 1
    +1 chance out of 2 at random
    -Set Direction of Monster to (Direction to point 3)

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)

    Join Date
    Sep 2007
    Location
    Austria
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What type of movement do I need for this?

    Now it works, thanks.

    1
    .
    .
    2....4
    .
    .
    3

    The monster starts at 4 and walks to 2. At 2 it can either walk back to 4, walk up to 1 or walk down to 3. At 1 it walks down to 2, at 3 it walks up to 2.

    My waypoints are boxes...the x value of 2 has to be smaller than the x values of 3 and 1 because otherwise the monster would e.g. go up but miss 1.

    I can change the position of 2...then the monster might walk up...and down again but walks straight to 3 as it misses 2.

    How can I code this? I don't want to change x and y values for all boxes until the bouncing movement is perfect. I think collisions are not that good for my movement.

Similar Threads

  1. Movement type: Path
    By TheGreatSolano in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 19th June 2011, 08:41 PM
  2. Specific type of movement
    By legocacher in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 18th February 2010, 05:08 AM
  3. RTS Type Mouse Movement
    By nivram in forum File Archive
    Replies: 13
    Last Post: 26th October 2008, 09:03 PM
  4. What movement type is best for bullets?
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 3rd April 2008, 03:53 AM
  5. Best solution for this type of movement?
    By Leander in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th October 2007, 12:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •