X Is overlapping X

0 favourites
  • 14 posts
  • So, the problem is how to make collision between the same objects?

    <img src="http://s1.ipicture.ru/uploads/20120823/1zCzw7VY.png" border="0">

    This way works fine for 2-3 objects, but fails when there is more.

    .capx

    Can anyone help me?

  • Hey Vlad,

    That reads as: Whenever a zombie is on top of another one, pick the zombie furthest away from the player and then change its vector x.

    Is this what you want to happen when zombies collide with each other?

    You could use: Zombie - On collision with - Zombie: What you would like them to do.

  • Hey Vlad,

    That reads as: Whenever a zombie is on top of another one, pick the zombie furthest away from the player and then change its vector x.

    Is this what you want to happen when zombies collide with each other?

    You could use: Zombie - On collision with - Zombie: What you would like them to do.

    I want them not to pass through each other.

    When I'm using On collision and way from .capx (instead of overlapping) it works only 1 time. Then zombie goes into zombie :D

  • up

  • Not sure exactly what you want, but I'd look into the 'pick nth instance' condition.

  • Is this closer to what you were wanting to do?

    https://dl.dropbox.com/u/22615804/collision_edit.capx

  • Not sure exactly what you want, but I'd look into the 'pick nth instance' condition.

    Damn my bad English

    I want them not to do like this:

    <img src="http://s2.ipicture.ru/uploads/20120824/u5GJrkz7.png" border="0">

    Is this closer to what you were wanting to do?

    https://dl.dropbox.com/u/22615804/collision_edit.capx

    Looks like that's what I need

  • Oh, I know how to explain what I want.

    I think that everybody played source-based games (counter-strike source, team fortress 2 etc) and you might noticed that when you trying to ?walk into? your teammate you are slowly getting out of him. That's what I meant.

  • Hows this?

    Link removed...

    It doesnt push them out of one another - instead it just keeps them apart. Its much simpler and pretty much the same thing.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hows this?

    https://dl.dropbox.com/u/13312935/Howsthis.capx

    It doesnt push them out of one another - instead it just keeps them apart. Its much simpler and pretty much the same thing.

    I'm getting ERROR while opening this capx. It can't find some sprites.

    There is no Sprites and Animation folders in your capx

    <img src="http://s40.radikal.ru/i090/1208/b0/5c2c76b52b18.png" border="0" />

  • hmm when I try to save your project as a capx it wont open after that. Are you using R100? All I did was disable/delete your collision detection event and added solid behaviour to the zombie placeholders.

    Give it a try.

  • hmm when I try to save your project as a capx it wont open after that. Are you using R100? All I did was disable/delete your collision detection event and added solid behaviour to the zombie placeholders.

    Give it a try.

    Make them stand like that:

    <img src="http://screenshot.su/img/b5/b2/33/b5b2335c0495aef288587a8fea930b94.jpg" border="0" />

    a then move green sprite to the right

  • Are you planning on having zombies fall from the sky? How likely is it that this situation will ever occur? As long as they stay on the ground you wont run into any issues.

  • Are you planning on having zombies fall from the sky? How likely is it that this situation will ever occur? As long as they stay on the ground you wont run into any issues.

    Ok, here you go. Screenshot from my game.

    <img src="http://2ch.so/gd/src/1345914803529.png" border="0" />

    See that platform over the main character? That's the answer to your question.

    Also, I've already solve this problem. Let me know if somebody need solution.

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