Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

A question about way borders

  • #1, by Doky 12 years ago Zitieren
    Hello everybody. im new here and im working in a project with visionarie. But i'm still a noob with this program.
    My question is the next one: Why when i click out of the way borders the character doesnt move? i want the character to move down and close of the pointer. I dont know how to do it. Any help please?
  • #2, by SimonS 12 years ago Zitieren
    Hello,
    there only two things that move the character:
    1) you click the exact destination
    2) you click outside the border, then engine tries to find the nearest waypoint, and sets that as destination.
    So add waypoints wink
  • #3, by Doky 12 years ago Zitieren
    Thank you very much for your answer my friend i solve the problem with more waypoints
  • #4, by ke4 12 years ago Zitieren
    Hi,

    i have question the borders too.
    I have scene where my character is visible only from the waist up, so i have just a few pixel height and full width way borders area on the bottom of the screen, with way points, but still character is not moving anywhere if i click outside of the borders - and i need him to not be floating..
    Please, do you know why is he not moving?
  • #5, by afrlme 12 years ago Zitieren
    Maybe try adding a zig-zag style way point? Or it could be because it's all outside of the scene itself?

    Maybe you could do something Inside of the left mouse button actions in mouse properties tab, such as: you could query if a condition is true then send character to getCursorPos().x & character position.y

    if condition 'condition_name' is true
     execute a script > (see block below)
    

    Characters["character_name"].Destination = { x = getCursorPos().x, y = Characters["character_name"].Position.y }
    

    end if
    

    ... if condition is true then it should force character to walk to x position where you clicked with mouse, while keeping character on the same y position.
  • #6, by ke4 12 years ago Zitieren
    That looks like a nice solution, i'm going to try it, thanks :-)
  • #7, by ke4 12 years ago Zitieren
    ... Thats weird,
    i tried Zig-Zag and that's not good because he walked out of the borders, but then i set normal waypoints again, and now it's working even without the script, so i guess i set the waypoints wrong for the firstime, maybe they wasnt conected or something.