Monday, 15 June 2015

python - How to check collision between the mouse and a sprite group -



python - How to check collision between the mouse and a sprite group -

i'm trying observe collision between mouse , sprite group. have searched around awhile couldn't find it. if know how please explain how such thing done? if appreciate it. i'm not sure parts of code need show if need please tell me part of need , post it.

if using pygame, easiest way create sprite not have image, , position alter mouse. access mouse coordinates utilize :

pygame.mouse.get_pos(): homecoming (x, y)

then can utilize existing collision detection new sprite.

python mouse pygame collision

No comments:

Post a Comment