Move After Stopping on Collision (SOLVED)

0 favourites
  • 10 posts
From the Asset Store
Perfect Particles
$2 USD
80% off
Particles support animations, collisions, effects and etc.
  • OPENING:

    Greetings!

    Hopefully, some Karma will come my way in return for help given to various people on their projects <img src="smileys/smiley2.gif" border="0" align="middle" />

    PROBLEM:

    I am trying to move some baddies down the screen towards a wall (as seen below) after they have been stopped by an on collision event due to baddies that were standing in front of them, but are now destroyed.

    <img src="http://imageshack.us/a/img502/3522/helpmove.png" border="0" />

    OBJECTIVE:

    The goal of this post is to find a way for these baddies with nothing in front of them to continue down their journey towards the wall.

    CURRENT IMPLEMENTATION:

    I'd imagine this would be similar mechanic found in some puzzle games.

    Here is what I am currently using:

    <img src="http://imageshack.us/a/img835/9495/helpmovement.png" border="0" />

    Monster Sprite has the following Behaviors and Instance Variables:

    <img src="http://imageshack.us/a/img805/7773/helpmovement1.png" border="0" />

  • IsometricRobot

    is adding a Solid Behaviour to Sprite11 a possible solution? As in that would handle the "stop when collide" and "move when not colliding" issue but would that break something else?

  • I did try to implement something like that. The only problem I had though is that they would start knocking each other off the screen. This was likely due to the simulated down command.

    So this is a print screen of adding solid behavior and disabling the "touching" Boolean.

    <img src="http://imageshack.us/a/img338/6982/helpmovement2.png" border="0" />

    As you can see the rows behind the group at the wall have actually pressed the front row past the wall when solids are active. They also tweak out, not visible in screen capture.

  • I added the following change with a partial success:

    <img src="http://img100.imageshack.us/img100/9198/helpmovement3.png" border="0" />

    If there are two rows and the first row is destroyed the second row will now move up.

    However. If there is a third row making contact with the second. They will not move forward.

  • Anyone that can help me tackle this problem will get credits in the game on completion.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hey Ramones!

    I'm pretty sure that is the answer I need. I'll have to update my license in order to use families.

    Assuming is the right answer for the games, could you send me a PM with how you would like to be listed in the credits?

  • Event 7 that's disabled is a different solution that doesn't use families. Just disable event 4 and enable 7. Don't worry about credits.

  • Cool Guy meme in your honor.

    <img src="http://img818.imageshack.us/img818/5038/coolguy.jpg" border="0" />

  • P.S. Works perfectly

    Consider this issue solved.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)