A question about way borders

  • #1, by DokyThursday, 11. December 2014, 17:30 10 years ago
    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?

    Newbie

    2 Posts


  • #2, by SimonSThursday, 11. December 2014, 17:34 10 years ago
    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

    Thread Captain

    1580 Posts

  • #3, by DokyThursday, 11. December 2014, 18:14 10 years ago
    Thank you very much for your answer my friend i solve the problem with more waypoints

    Newbie

    2 Posts

  • #4, by ke4Sunday, 14. December 2014, 10:13 10 years ago
    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?

    Key Killer

    810 Posts

  • #5, by afrlmeSunday, 14. December 2014, 12:45 10 years ago
    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.

    Imperator

    7278 Posts

  • #6, by ke4Sunday, 14. December 2014, 12:49 10 years ago
    That looks like a nice solution, i'm going to try it, thanks :-)

    Key Killer

    810 Posts

  • #7, by ke4Sunday, 14. December 2014, 12:59 10 years ago
    ... 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.

    Key Killer

    810 Posts