Thanks for your detailed answer, much appreciated. Unfortunately this has to wait for a moment as i do have some family business to do (couldn't do anything yesterday...hrmpf...) . At last, thanks to prove that i am not a completely idiot (er..more or less ^^ as you state that it isn't working as you expected)
For the arrow key issue: maybe i do something wrong before i use the code or even my machine is stupid ^^( wich it will only do to match up with its user
)
yes, you are right, its hard to leave it alone and do different things such as sleeping, family business, eating......
MANY, MANY THANKS for all your help!
EDIT:
Did a Quick test with your (and ONLY your code ^^ nothing left from me, no dlls included i am working on ect..) made a testlevel with the following specs:
1st barrel:
name=lilstinker (for the lulz)
IfUsed=barrel2
script=jump.lua (your script)
nothing else changed
2nd barrel
name=barrel2
nothing else changed
placed a player startmarker
started the level and first moved a bit around, everything is fine.
pressed j=>it jumped (with your described..strange behavior)
pressed any arrowkey directly after pressing j (to be as clear as possible: released the "j" key, didn't touch the mouse or anything else, counting "twetyone...twentytwo" then pressed the "up"-arrow)... it jumped again , pressed any arrowkey after that all repeats the jumps... pressed one time the "w" (no jump) and then the up-arrow, then it worked like expected... so, i guess its my machine
Got Win 8.1 pro 64 Bits on an AMD Phenom II X4 3,1 (i know, old one, but do the work ^^), 16GB Ram , AMD R9 270 GFX and a OCZ 500 GB ssd as specs. (everything is updated, drivers brand new)
and yes, it also did..strange things beside of that (wich my script didn't so i dont bother ^^)
If you got no clue, i call it a "feature" and leave it alone for the moment, as it isn't the BIG issue .. sure, something i have to come back later on but not now ^^
and thanks for your patience!
For all others, reading this: If You have any idea or can confirm my problem (maybe someone with a pc with similar specs and enough time to do a test) feel free to fire your ideas
if not..well, i do come back later to this issue after some updates