User Tag List

Results 1 to 3 of 3

Thread: Object gets stuck in wall

  1. #1
    No Products Registered

    Join Date
    Dec 2007
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Object gets stuck in wall

    I don't know how to make working walls. I have backdrops placed, set as obstacles, and I can make it so that when an object collides with it, it can no longer move. But the object gets stuck in the wall instead of resting beside or on top of it. How do I stop the object's movement so that it stops when it is just outside of the wall?

    The attached image represents an object moving down at 8 pixels per frame.


  2. #2
    No Products Registered

    Join Date
    Mar 2009
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object gets stuck in wall

    Proper solution

    Use a fastloop to move the object out of the wall if it is overlapping.

    Although I can't get this to work correctly myself:

    +blue overlapping black
    -> start loop "esc" 20 times (eg 20=worst case overshoot)

    +on loop "esc"
    +blue overlapping black
    -> Y(blue)-1

    +on loop "esc"
    +blue not overlapping black
    -> stop loop "esc" (stop before esc goes 20 times)

    Something like that.

    http://www.youtube.com/watch?v=lMuVINZslUA&NR=1

    Quick fix1

    If its a floor thats completely flat across the whole frame with no bumps.

    +Y(blue) > 175(y of floor)
    ->set Y(blue) = 175

    Quick fix2

    You might try this.

    +blue overlaps black
    ->set Y(blue) to Y(black) + 10 (or whatever you desire)

  3. #3
    No Products Registered

    Join Date
    Dec 2007
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object gets stuck in wall

    thanks! that worked

Similar Threads

  1. Completely Stuck With INI Object in Flash
    By redpandagames in forum SWF/Flash Export Module Version 2.0
    Replies: 9
    Last Post: 14th December 2012, 09:06 PM
  2. Destroying an object that crashes with the wall
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 2nd October 2010, 11:34 PM
  3. Bouncing object avoids collision (past wall)
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th May 2010, 04:07 AM
  4. How do I make an object spin when it hits a wall?
    By Vackin in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th October 2007, 04:48 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
  •