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

  • #1, by lauchstangeMonday, 12. June 2017, 18:36 3 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!

    Newbie

    4 Posts


  • #2, by sebastianMonday, 12. June 2017, 18:41 3 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?

    Thread Captain

    2337 Posts

  • #3, by lauchstangeTuesday, 13. June 2017, 00:46 3 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?

    Newbie

    4 Posts

  • #4, by joemidTuesday, 13. June 2017, 02:09 3 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.

    Newbie

    87 Posts

  • #5, by EinzelkämpferTuesday, 13. June 2017, 02:16 3 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):

    - 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).

    Newbie

    81 Posts

  • #6, by sebastianTuesday, 13. June 2017, 09:18 3 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

    Thread Captain

    2337 Posts

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

    Newbie

    81 Posts

  • #8, by sebastianTuesday, 13. June 2017, 13:05 3 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 ^_^

    Thread Captain

    2337 Posts

  • #9, by lauchstangeTuesday, 13. June 2017, 21:40 3 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!

    Newbie

    4 Posts

  • #10, by afrlmeTuesday, 13. June 2017, 21:45 3 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.

    Imperator

    6842 Posts

Write post