Incomprehensible behavior with pathfinding

0 favourites
  • 9 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • Hello

    Well, I've deleted almost everything there was to try and find this problem, to no avail, don't understand the problem here, it's very strange!

    So, double-click just to the right of the green sprite, it will find the path and move on, click elsewhere, nothing happens, yet it seems to find the path because the character blinks in a certain way, so it finds it but doesn't move.

    Now go back to the editor, change the position of the green square, restart the game and try the same thing again, nothing works here!

    Personally, I don't understand this problem at all.

    drive.google.com/file/d/1pk_9NTJm9_ETu1Vlj_dRVLTfnKHxetZ4/view

  • Seems it doesn't like that you removed its ability to rotate

  • Thanks, it's a bug, I'll report it.

    Do you also know why my little purple square (sprite3) doesn't appear when the path is found? it should in order to create images at the position of the path search nodes.

  • It's not a bug. If someone tells you "go left, but you can only move forward" - will you be able to do that? No.

    When you move a sprite with pathfinding behavior, it uses "Rotate speed" to make turns. When rotate speed is 0, it can't turn and therefore can't move.

    Before posting bugs for behaviors which have been around for ages, try to read the documentation first.

    And your sprite3 doesn't appear because node index is zero-based, you need to start the loop at 0.

  • "If someone tells you "go left, but you can only move forward" - will you be able to do that?"

    Hello dop2000, and if, of course if (yes I can do it), I make side steps and voilà, I can do it ^^.

    Okay, well, that's not very clear.

    And for the basic index 0, I've already tried, doesn't work, or even 0 at number of nodes -1, nothing works!

    On another game I did the same thing and it worked, but not here, and they're not hidden under the map, they just don't appear!

    Thanks for your help :)

  • Thanks, it's a bug, I'll report it.

    Do you also know why my little purple square (sprite3) doesn't appear when the path is found? it should in order to create images at the position of the path search nodes.

    Ya sorry I didn't mean it is a bug I meant add some rotation to it. The purple sprite works for me if you start the loop from 0 because there is only one node.

  • and then can you tell me if it works for you?

    double-click on a node to move the character.

    drive.google.com/file/d/1gWgFFHVUeTyWElkqAcPcG8AUuqdMmhz9/view

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You are creating them on layer 2 which set to invisible in layer properties

  • No, you're talking nonsense, only layer 0 is invisible !

    Edit:

    Ah !!!, ok I get it, there's been a big mix-up here, you're talking about the layer number displayed in grey to the right of the layer name, and I've got it reversed (name and number).

    Well, I'm definitely seeing a lot with C3, thank you very much for your invaluable help!

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