Hi, I have a dynamic textbox (variable = health), and I would like to know how to increase it to 999 or just increase it (e.g +2) when the SHIFT key and a letter like H is pressed
The other key is controlled by the 'Key.isDown(72)' part, to add another key just replicate the 'if' statement code and change the number for the key code of the key you need to trap (G is 71).
If you're looking to catch a lot of keys then I'd have the 'SHIFT' condition separate from the rest and use a switch statement to work out what other key is being pressed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.