Hi, How do I open or close a window in game by pressing just one key for example "e"

Hi, How do I open or close a window in game by pressing just one key for example “e” so that I can for example read a text and then by pressing the “e” key again I close the window, thanks for the help

You’ll want to use a toggle state variable of some kind.

This is a bit of an older tutorial, but the logic concepts in here would apply for what you’re looking for: https://www.youtube.com/watch?v=vuV_Q_hzACQ

ok perfect, thanks for your time SOLVED :slight_smile:

1 Like