another thread of mine being a beginner in the programming game.
I'd like to have a on-key-press script, that only reacts to specific keys and then exits the script, that can be triggered while certain scripts are already running.
Now I tried to figure out certain ways.
A "Key wait"-script would stop the entire script until a key is pressed, which is not what I want, it should continue going on.
I tried to make a "while-loop" with
Code:
while (keyval (key:NUMPAD PLUS) == 0) do
begin
backdrops2 (67,69,20,1)
show text box (69)
(rest of a longer animation script)
while (keyval (key:NUMPAD PLUS) == 0) do
begin
backdrops2 (67,69,20,1)
show text box (69)
(rest of a longer animation script)
but it only checks this at the very beginning of the script, and doesn't do anything until the entire animation script of mine has already ran through.
Basically an if/then statement that just keeps on checking while the script is going further is what I would need!
thanks in advance
score




Edit: Ok figured out the math but not more than that...