I
I
ibr_982017-08-03 15:38:21
pygame
ibr_98, 2017-08-03 15:38:21

Why doesn't it show movement along "y"?

Hello!
Why doesn't it show y movement?

if e.type == p.MOUSEMOTION:
        xb = p.mouse.get_pos()
        xb2 = xb[x]
        xb3 = xb[y]
        print(str(xb3))

the main thing when I drive around the screen, in the print it shows the movement along the X, although I entered the variable "xb3" in the print, that is, to show the movement along the game

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question