Is it possible to allow one person (player 1)to type into a edit object using the numpad and another player (player 2) type into a different edit object with the number keys simultaniously?
Printable View
Is it possible to allow one person (player 1)to type into a edit object using the numpad and another player (player 2) type into a different edit object with the number keys simultaniously?
The Edit object is a Windows control in essence and so only one of them can have focus at a time... I think it's possible using a workaround, detecting numpad and number keys separately in the Event Editor then giving focus to whichever Edit box is relevant and adding the pressed key, though that wouldn't work for simulatenous keypresses.
You could add the detected keys to separate strings and set the edit boxes to match the strings if it's necessary to have them in an Edit object.
I'm making a 2 player math racing game. Each player gets a different problem and has to answer it by typing in the right number. How would that be possible?
Detect when they hit a key, set a string to the string plus that key.