Answers for "how to separate x and y from mouse position python"

0

how to separate x and y from mouse position python

#just follow me

#xmousepos is a variable that assigns itsalf to the position of your cursor
#the [0] means the x position of the cursor [1] means the y position
#[1] is for the 2nd value of xmousepos / the x value
#[2] is for the 1st value of ymousepos / the y value
xmousepos=pygame.mouse.get_pos()[0]
ymousepos=pygame.mouse.get_pos()[1]

#i hope this helped yoy... now get back to work
Posted by: Guest on May-31-2021

Code answers related to "how to separate x and y from mouse position python"

Python Answers by Framework

Browse Popular Code Answers by Language