Attract-Mode Support > Scripting

How to delay action after pressed the key

(1/1)

kent79:
Hi

I have some coding question. As below coding, when I triggle "right" button and then running "cardStationViewer()" function immediately. My question is how to delay number of seconds to run function when I pressed the key. Thanks.


--- Code: ---case "right":
cardStationViewer()
return true;
--- End code ---

Navigation

[0] Message Index

Go to full version