Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pygame point collisions

Object_1 = pg.Rect(x, y, width, height)
Point = (x, y) #If this doesn't work, then change parenthesis to brackets

if Object_1.collidepoint(Point):
    #Do something
 
PREVIOUS NEXT
Tagged: #pygame #point #collisions
ADD COMMENT
Topic
Name
4+5 =