Avoid overlaps ?

0 favourites
  • 7 posts
From the Asset Store
Pathfinding AI
$2 USD
80% off
Units do not overlap each other and use different ways if there are several free ways.
  • hi,

    How I can fix overlapping?

    if found this :

    scirra.com/forum/problem-with-overlapping-monsters_topic75005_page2.html

    _____

    but this move object too fast...

    i want my object find another patch like behave in solid object ...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Please do explain what you want to do and show us what you already tried to do to solve your problem , that'll help us help you solve the problem

  • Please do explain what you want to do and show us what you already tried to do to solve your problem , that'll help us help you solve the problem

    for ex : you choose new project and select : Template-RTS.capx

    you can see the tanks move through each other

    for ex we have a 2 tank : tank1 and tank2

    we click on x,y

    i want when tank2 in way of tank1 then tank1 find another patch to go to x,y we clicked

    or tank2 move a little then tank 2 go to x,y

    for better ex see this img :

    imageshack.com/a/img191/1381/a3nt.png

  • please help ...

  • Off the top of my head I would say that you'd want to include the tanks as a solid obstacle to be avoided (since that example uses the pathfinding behaviour). This means that paths could be redrawn each frame to avoid each other (since they are dynamic and changing position all the time).

    I haven't got chance to try that now, and I'm not sure what the effect will be on your framerate. It sounds as though there might be a lot more calculations going on since you'll have to refresh the pathfinding each frame to take into account the dynamic nature of where friends and enemies are. You'll have to test it and see - it depends how many other objects are on screen, how many of them are using this kind of behaviour etc.

    Would someone else be able to comment on this?

    Also, please don't bump after a short time - in this case it was less than 2 hours. Whilst it IS very frustrating to be stuck on something (we've all been there, and go back there FREQUENTLY!), this is a small forum with only a small number of people who will be able to help you, so you'll have to wait. I would suggest at least 24 hours before bumping in future. Frequent bumping will only lead to people being more likely to ignore you.

    In future, find another problem to work on whilst you're waiting for a reply on this one.

    Hope that helps.

  • i think this is a bug in construct 2

    right ?

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