Menu
Login
Language
DE EN FR ES IT CZ
Back

[Solved] Walking with arrow keys

  • #30, by sebastian Thursday, 09. February 2017, 22:04 9 years ago Quote
    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_ASA Friday, 10. February 2017, 14:25 9 years ago Quote
    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 Machtnix Friday, 10. February 2017, 21:00 9 years ago Quote
    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

    1098 Posts

  • #33, by sebastian Saturday, 11. February 2017, 08:55 9 years ago Quote
    @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_ASA Monday, 13. February 2017, 15:51 9 years ago Quote
    Oh yes it works sebastian! You're amazing!
    Thanks to both of you smile Cheers!

    Great Poster

    321 Posts