How to Make Objects Move in PyGame!

preview_player
Показать описание
Making objects move is the essence of almost all fun games, and knowing how to do this in pygame is super easy and alot of fun!

In this video we cover how to move a player, how to move the world around a player, and how to animate a character!

Massive thank you to Patreon Supporters Dale and Philip!!

Don't forget to leave a like on the video, subscribe to the channel, and leave a comment letting me know what you'd like to see next on the channel!

TIMESTAMPS:
00:00 Introduction and PyGame Setup
03:00 How to Move a Player Object in PyGame
10:25 How to Move the World Around the Player in PyGame
18:20 How to Animate the Player in PyGame
27:50 Outro and Thank You!
Рекомендации по теме
Комментарии
Автор

This is actually sick! I have always found It quite hard to animate characters in pygame.This was super helpful for my games!

willwillcode
Автор

Your videos are great!! I love the content and have been following along with your tutorials to learn python.

sweet-keeks
Автор

Hey man. I am trying hard to make simple 2d balls collide and bounce off in a realistic way. I use a mask to get a pixel perfect collision detection, I calculate the collision angle and do some quite extended vector calculations to modify the velocity vectors of both balls to bounce them of. And most of the time my code works. But every now and then the balls just move through each other instead of bouncing off. And I can't find the origin of that "bug". Do you have any experience with physics based, realistic collisions in pygame?

Most solutions I found on the internet just use the mask to reverse the velocity vector once a collision is detected. That is effective and seems to work always. But it disregards correct bounce angles. And I really want to have them.

holon