[Solved] Walking with arrow keys

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

    Thread Captain

    2346 Posts


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

    Great Poster

    321 Posts

  • #32, by MachtnixFriday, 10. February 2017, 21:00 7 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

    Thread Captain

    1097 Posts

  • #33, by sebastianSaturday, 11. February 2017, 08:55 7 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.

    Thread Captain

    2346 Posts

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

    Great Poster

    321 Posts