Character ignoring waypoints. Can I lock Character to the System?

  • #1, z lauchstangeMonday, 12. June 2017, 18:36 hodinky 7 years ago
    Hey guys!

    So, I set up a way system for our game and had to find out, that the character simply ignores the waypoints. All the waypoints lie inside the borders. I want him to move around the cannons in this room:


    But what happens is this:


    Even if I add the cannons as objects whith separate images, the character simply ignores them. I found a post by "fulviov", here in the forum which states:
    You have to make sure that all points in your walking area have visibility to at least one waypoint for this to work properly. With waypoints, you also have the nice side effect that when the destination point cannot be reached at all (you click outside the walking area, for example), the character will still walk to the nearest waypoint. 
    I get, what he is trying to say, but do I have to add more Way-Points to achieve this? I thought, they are pretty straight forward. Or is there any way, I can force the character to use these points?

    Thanks for your time!

    Bažant

    4 Posts


  • #2, z sebastianMonday, 12. June 2017, 18:41 hodinky 7 years ago
    You need also wayborders for places where the characters should not be able to go. If the char is able to reach a destination directly it doesn't need waypoints.

    So add the borders  for the scene and also "holes" inside to exclude the canon smile

    EDIT: sorry. i overead that you already created borders. Thats indeed weird. Did you setup a "hole" in the waybordermal for the canon as well?

    Kapitán

    2346 Posts

  • #3, z lauchstangeTuesday, 13. June 2017, 00:46 hodinky 7 years ago
    Hey there!

    Thanks for your response smile
    How do I set up these holes? I always think of the wayborders as one circle.
    Can I do more than one walkable area and let them overlap within one wayborder?
    Because I didn't even think about that until now.
    Or is there something like a subtract function where i subtract a drawn circle from the area?

    Bažant

    4 Posts

  • #4, z joemidTuesday, 13. June 2017, 02:09 hodinky 7 years ago
    To create non-walkable areas, click the waypoint tool outside of way-area and draw a new way-system polygon.  The lines of the two way-areas may overlap, but you can move the points of the "cut-out" after you finish drawing.

    Here's a tutorial if you are confused with how I described this...  Sebastian may have a new one- in German?

    Also, the cannons are separate objects?  If not, they should be. I would also only "cut-out" the footprint, i.e. the base of the cannons.  

    Depending on the center point of the cannon image/images, your character will walk in front or behind the object image.

    Bažant

    87 Posts

  • #5, z EinzelkämpferTuesday, 13. June 2017, 02:16 hodinky 7 years ago
    1. As joemid said: draw a second wayborder polygon outside of the outer wayborder and then move it into the existing polygon. You can watch sebastian doing it in his tutorial video (at ~23:00 min): https://www.youtube.com/watch?v=c8AkL4o93xk

    - or -

    2. Hold the ALT button (Windows) and draw the hole directly inside the existing wayborder (this used to work in earlier versions, I hope it still does).

    Bažant

    81 Posts

  • #6, z sebastianTuesday, 13. June 2017, 09:18 hodinky 7 years ago
    2. Hold the ALT button (Windows) and draw the hole directly inside the existing wayborder (this used to work in earlier versions, I hope it still does).

    yes, still works. Also on macOS

    Kapitán

    2346 Posts

  • #7, z EinzelkämpferTuesday, 13. June 2017, 11:58 hodinky 7 years ago
    Ah, okay. Ich war mir nicht sicher, weil es in deinem Video, glaube ich, nicht erwähnt war...

    Bažant

    81 Posts

  • #8, z sebastianTuesday, 13. June 2017, 13:05 hodinky 7 years ago
    Ah, okay. Ich war mir nicht sicher, weil es in deinem Video, glaube ich, nicht erwähnt war...

    zu dem Zeitpunkt war mir die Methode auch noch nicht bekannt . Hat dann kurz nachdem ich das Video veröffentlicht habe jemand erwähnt ^_^

    Kapitán

    2346 Posts

  • #9, z lauchstangeTuesday, 13. June 2017, 21:40 hodinky 7 years ago
    Thank you guys so much!

    I tried the press alt method and circled around the cannons. It works like a charm!
    Now it actually uses the points, I defined.
    The Method, where you have to draw an area outside of the regular area, didn't really work for me. I don't know the reason though.

    I encountered a fatal error in the process. The borders can't be too detailed, otherwise the game will crash... Took me some time to figure it out, but now it works again. smile

    Thanks for your time!

    Bažant

    4 Posts

  • #10, z afrlmeTuesday, 13. June 2017, 21:45 hodinky 7 years ago
    Thank you guys so much!

    I tried the press alt method and circled around the cannons. It works like a charm!
    Now it actually uses the points, I defined.
    The Method, where you have to draw an area outside of the regular area, didn't really work for me. I don't know the reason though.

    I encountered a fatal error in the process. The borders can't be too detailed, otherwise the game will crash... Took me some time to figure it out, but now it works again. smile

    Thanks for your time!

    It's best to keep them fairly simple. The thing that can cause crashes is usually to do with stray way border points. A way border has to be closed off to create a circuit. Also You can't place way border edges/lines too close together or overlap them.

    Imperátor

    7285 Posts