[Solved] Walking with arrow keys

  • #30, z sebastianThursday, 09. February 2017, 22:04 hodinky 8 years ago
    ill have a look at the project after work if still needed then. Right now im not at my computer, sorry. 

    Kapitán

    2346 Posts


  • #31, z Simon_ASAFriday, 10. February 2017, 14:25 hodinky 8 years ago
    Thank you sebastian. It's not urgent, I have other works in progress in the meantime, but I apreciate your help.

    Čestný člen

    321 Posts

  • #32, z MachtnixFriday, 10. February 2017, 21:00 hodinky 8 years ago
    I used a simple version without requesting the ASCII of arrow-keys in the script. I put four scripts into the four key requests. If I press an arrow-key (maybe left), I call a script, set the position of a dummy object 20 pixels left and the character moves to this dummy object while pressing the button. The same for the other directions. It works well for the four main directions (I use only four: left, right, top, button). But I haven't tested it very extensive; it works for me and my setting and that's ok to me.

    https://abload.de/img/pfeiltasten4zujz.jpg

    Kapitán

    1097 Posts

  • #33, z sebastianSaturday, 11. February 2017, 08:55 hodinky 8 years ago
    @Simon_ASA
    Just swap out your "hide/show cursor" to "begin/end cutscene"
    Hiding the cursor is no garantee that you can not use arrow keys as they are used by injecting it via Lua in your case. In fact from what i experienced the Lua stuff is checked first before any action parts. 
    Thats why you are able to hook into loops and for example catch the arrow keys and maybe deny their input as if they were never pressed.

    Kapitán

    2346 Posts

  • #34, z Simon_ASAMonday, 13. February 2017, 15:51 hodinky 8 years ago
    Oh yes it works sebastian! You're amazing!
    Thanks to both of you smile Cheers!

    Čestný člen

    321 Posts