More inputs at same time
in
Programming Questions
•
11 months ago
Hi at all! This is the first time that i write to a forum at all, so please be kind if the topic exists ore something, but i couldnt find anything.
I have programmed a simple ping pong game, but i can´t move the second bar if the first is moving, thats why im unable to game with another person.
i have used:
I have programmed a simple ping pong game, but i can´t move the second bar if the first is moving, thats why im unable to game with another person.
i have used:
- if (keyPressed) {
- if (key == 'w') {
- // move up
- }
- }
- //and that for down again
- //and for the second player as well.
Any idea how i could move both at the same time?
Thanks already!
Wolfgang
Thanks already!
Wolfgang
1