Menu
Login
Language
DE EN FR ES IT CZ
Back

A question about way borders

  • #1, by Doky Thursday, 11. December 2014, 17:30 11 years ago Quote
    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 SimonS Thursday, 11. December 2014, 17:34 11 years ago Quote
    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

    1622 Posts

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

    Newbie

    2 Posts

  • #4, by ke4 Sunday, 14. December 2014, 10:13 11 years ago Quote
    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 afrlme Sunday, 14. December 2014, 12:45 11 years ago Quote
    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

    7290 Posts

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

    Key Killer

    810 Posts

  • #7, by ke4 Sunday, 14. December 2014, 12:59 11 years ago Quote
    ... 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