pygame_functions: Sprite collision

preview_player
Показать описание
Once we have sprites moving on our screen, how do we tell if they're touching each other?

I'm using pygame_functions. This is a library which makes game creation in Python a little easier. You can get it from:

Don't forget to watch the first video in this series to see how to install everything and get started:

Рекомендации по теме
Комментарии
Автор

You rock Paget! We use your works to inspire kids to learn and do programming.

ciarel
Автор

I just gotta say, I recently started programming with Python and already, it's a blast! I was following this one tutorial that, while it was good, it was too much to program. So many extra steps were required to import sprites, and even just move them. Thank you for your module and never stop making tutorials!

brelidav
Автор

Best video on Python I've seen so far dude. Like it's so practial. it's so simple it can't be simplified !

asdfasdfasdf
Автор

Paget Teaches... I love your videos! I am from Australia and I am entering Year 10 Computing, as I have always had an interest in computers and code etc. Very well explained as Leet Gamerz has said - as I can see you are a teacher so you already have that attribute of your teaching! My enthusiasm towards python has increased many times over thanks to these easy to watch videos that you have created! Keep up the good work!

jordanmusicandotherstuff
Автор

A million more of these videos please! They're so good!

barrybryant
Автор

Great Job on the video. I find all your videos very well explained. Can't wait to try out the new pygame functions.

leetgamerz
Автор

Dude this is awesome.
why doesn't this have more views?

asdfasdfasdf
Автор

How would I flip a sprite horizontally or vertically?

ACriticalRetrospective
Автор

Your explanation is spectacular. Keep it up :)

tameem
Автор

I have a question: is possible use the touching function for create different collisions in the same thing?
I want create a platform and I need the player touch the same platform in different point: up, left, down and right.
With your tutorial I can make just the up collision

andreabruzzone
Автор

I liked this module a lot and it is much more easier than normal pygame . But when i Used the KeyPressed function it is giving me a error.TypeError: iterating over key states is not supported
Can anyone please tell me to solve it.

femylijo
Автор

Hi Paget?
can i ask about the (def textBoxInput) in the pygame_functions... how can i exit the textbox using a button_pressed like the enter button?

chubis
Автор

When i use transformSprite on 2 sprites, the masks stay the same size. Is there a way to scale that down so i don't have to actually import a smaller png?

AdifferentDMENSION
Автор

is it possible to make: g = 9.81 and let it accelerate every second

thisisanewaccount
Автор

Evevrthing is fine and great video but please hide the cam or make it smaller so that we can concetrate on coding area. thanks anyways

HaseebHeaven