How can I log key presses in Game Maker?

Posted by skeletalmonkey on Game Development See other posts from Game Development or by skeletalmonkey
Published on 2012-03-20T13:40:27Z Indexed on 2012/03/20 17:39 UTC
Read the original article Hit count: 235

Filed under:

I'm trying to create a log of a players actions as they play a game of Spelunky. The easiest I've found to do this is to log what keys are pressed at each frame. What I don't know how to do is how to integrate this with the Game Maker source code of Spelunky.

Is there a specific way to create a script that is checked every frame/tick (don't know the right term) and a command to find what buttons are pressed?

© Game Development or respective owner

Related posts about game-maker