User Tag List

Results 1 to 7 of 7

Thread: 8 direction movement - no bouncing?

  1. #1
    Clicker SWF Export Module

    Join Date
    Apr 2009
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    8 direction movement - no bouncing?

    Hi, I want to make it so when my character touches a wall he will stop moving, not bounce like in the default 8 direction movement. A good example would be in the old zelda games when you touch a wall link stops moving, but his animation still plays. Is this possible to do with the 8 direction movement?

  2. #2
    mojofltr
    Guest

    Re: 8 direction movement - no bouncing?

    This might not be the best example, but it's the first solution that came to mind:

    http://www.mediafire.com/download.php?bayzwloomuo

  3. #3
    Clicker SWF Export Module

    Join Date
    Apr 2009
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 8 direction movement - no bouncing?

    Thanks, this works almost perfectly, I edited it so it supports diagonal directions as well as vertical and horizontal directions

  4. #4
    mojofltr
    Guest

    Re: 8 direction movement - no bouncing?

    It is still possible for the player caught in an obstacle if the player pushes a new direction before the active object has repositioned itself (it doesn't happen a lot, but it is a possibility). Perhaps, instead of repositioning based on which direction the player is... a better approach might be to set a flag based on the direction it was when it overlapped and reposition (and turn flag back off) that way. If you are not sure what I mean, I can post an example.

    ...

    Actually, I tried with flags and it still had issues.

    I think the most fail safe method would be to add 4 detectors and go from there.

    http://www.mediafire.com/download.php?gghyngwdlhn

  5. #5
    Clicker SWF Export Module

    Join Date
    Apr 2009
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 8 direction movement - no bouncing?

    I looked at your example with detectors and I changed it so there is no bounce for the sprite. All I did was change the authorized directions of the character to match the detector that was overlapping a wall. I haven't found any problems with it yet, but if someone does please let me know.

    mfa file - http://www.mediafire.com/download.php?0lmtfjzmmme

  6. #6
    mojofltr
    Guest

    Re: 8 direction movement - no bouncing?

    I didn't like how the character would get stuck on a wall, so I played with it some more:

    http://www.mediafire.com/download.php?oztmmtli3ag

    (Of course, now it doesn't use the built in 8-directional movement... but, oh well.)

  7. #7
    Clicker SWF Export Module

    Join Date
    Apr 2009
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 8 direction movement - no bouncing?

    Wow, this is exactly what I was looking for. Thanks for all your help mojo!

Similar Threads

  1. Bouncing Ball Direction Glitch
    By NatureBit in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th September 2013, 06:30 PM
  2. Help with bouncing ball movement
    By path in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 9th August 2012, 11:34 AM
  3. 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
  4. Bouncing the D&D movement
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 18th January 2010, 12:36 PM
  5. [Bug] Bouncing ball movement
    By Sphax in forum File Archive
    Replies: 1
    Last Post: 31st January 2007, 12:23 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
  •