Ganz simples Klick-Problem

  • #1, by MachtnixSunday, 21. June 2020, 23:32 4 years ago
    Das Wegesystem ist nur auf dem braunen Grund, damit die Figur nicht in die Luft läuft. Klicke ich direkt auf das Braun, also ins Wegsystem, läuft die Figur auch brav. Für später möchte ich jedoch, dass jeder Klick in die richtige Richtung dazu führt, dass die Figur dorthin läuft.

    DeepL:

    The path system is only on the brown ground so that the figure does not run into the air. If I click directly on the brown, i.e. in the path system, the figure runs well. But for later on I want every click in the right direction to make the figure run there.

    It's very very simple - does it work?

    May be I have forgotten how...

    PS It's only a testing game... wink

    Thread Captain

    1097 Posts


  • #2, by esmeraldaMonday, 22. June 2020, 08:58 4 years ago
    the character walks to the waypoint next to the click position when you click outside the waysytem.
    More nodes (waypoints) -> more accurate positioning 
    (but keep in mind that the calculation of the path requires more computing capacity depending on the number of waypoints. So don't overdo it.)


    Der Charakter läuft zum nächstgelegenen Punkt im Wegsystem, wenn du außerhalb der Weggrenzen klickst. 
    D.h. je mehr Wegpunkte, desto eher läuft der Charakter an die vorgesehene Stelle.
    (Aber denk daran, dass die Berechnung des Pfades Rechenkapazitäten benötigt, abhängig von der Zahl der Wegpunkte. Also nicht übertreiben.)

    Key Killer

    513 Posts

  • #3, by MachtnixMonday, 22. June 2020, 12:30 4 years ago
    Stimmt. Ich habe gar keine Wegpunkte, weil die Figur ohnehin nur auf dem Strich gehen kann *lol* (das Gebiet ist bloß ein schmales Handtuch...). Deshalb rührt sich nichts.
    Dann reicht eine Gerade mit zwei Endpunkten.
    Danke!

    That's right. I don't have any waypoints, because the character can only walk on the line *lol* (the area is just a narrow towel...). So nothing moves.
    Then a straight line with two end points is enough.
    Thanks!

    Ich glaube, hier bedeuten "walk on the line" und "auf dem Strich gehen" unterschiedliche Dinge, oder? wink

    PS Ich merke, dass ich fast drei Jahre raus bin. Ich habe einen ganzen Beutel "einfacher" Probleme. Von den 100 Problemen habe ich jetzt nur noch 99... wink

    Thread Captain

    1097 Posts