Skip to content

player2 Paddle will not move in pong game. #4186

Answered by hymm
jak6jak asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to iterate over events twice, you shouldn't use EventReader. It has memory of which events it already iterated over. In this case, I would probably just switch the order of the looping. First loop over events and then loop over the player query.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jak6jak
Comment options

Answer selected by jak6jak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants