0

I am trying to make a simple game with a square going up and down in Pygame Zero, but I couldn't use any if statements. I am wondering what alternatives do I have for

if player.y>downLimit or player.y<upLimit

If possible, I needed a way to see the list or the name of actor who has collided with the player actor, in string form.

I have tried using jump tables, but I can't seem to use it to see the values of the player.y.

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
Azbojrn
  • 1
  • 1
  • What do you mean "couldn't use any if statements"? I'd suggest providing a reproduction of that specific issue, but it really sounds like a debugging problem for you to handle. – Kenny Ostrom Feb 25 '23 at 22:45
  • Please provide some details about what you want to achieve and why. – albert Feb 25 '23 at 22:56
  • The tag for [Pygame Zero](https://pygame-zero.readthedocs.io/en/stable/) is [tag:pgzero] – Rabbid76 Feb 26 '23 at 08:05

0 Answers0