PyGame Flappy Bird Beginner Tutorial in Python - PART 2 | Sprite Animation

preview_player
Показать описание
In this Python tutorial I code Flappy Bird using the PyGame module. I'm going to cover sprite animations.

Download the bird images here:
Рекомендации по теме
Комментарии
Автор

its so easy to understand, thank you!!

izumikunishima
Автор

It is easy to understand i have seen another tutorial where someone talks about the self.index but i didn't understand it, but thank god i found you, you explain it really good and also do it in a way where if i were to read your code i would've understand it because of this:
for num in range(1, 4):
img =
self.images.append(img)

it's so easy to understand

triggvfx
Автор

Instead of int we can use floor division because int(10/2) and 10//2 means same and it also works i have coded with the help of floor division method it's error free.

gamerscientist.
Автор

"update" is not accessedPylance any thoughts ?

KAWAZACHI
Автор

How do i add bird class to another page?

codytremblay
Автор

Hello can you help me i got a problem because of not responding window when its pop out a blackscreen with not responding window i already double checking my code but its not working

aquarium_lad
Автор

Hello again! I cannot find the pictures that match eachother, can you please suggest some?

yijinkuo
Автор

after using the exact same code, the bird dosent animate, any help, Russ?

SnipSnax
Автор

an error was on the update function, solution:

if self.index >= 2:
self.index = 0
self.image = self.images[self.index]

theyoungcoder
Автор

sir, your videos are too quick and less-described for a begginer to learn the basics of game deveopment...hope, you will make future video in a descriptive way

ragibashab
Автор

i've write a quicker sprite animation down there by doing that you dont need to write so many 'if's. By the it is a very nice tutorial thanks .

self.index += 1
self.index = self.index % len(self.images)

self.image = self.images[self.index]

EzioOmer
Автор

Respected Sir..honoured cause you did answer.. am using GEFORCE & Dell PC...both of them (ctra + b) not working.
showing the same can't find '__main__' module in Text 3\\Packages'
[Finished in 0.1s with exit code 1]
[shell_cmd: python -u ""]
[dir: Text 3\Packages]
[path: C:\Program Files Files (x86)\Python37-32\;C:\Program VS Code\bin]

ushabothra
Автор

Heyyy there! I'm so late- this was made a year ago- but anyways. I tried to do the same thing on my raspberry pi, yet it keeps telling me there is a syntax error on line 31. For me, line 31 is

img =

I have tried many times to fix it, even checked other tutorials for referencing, yet could not find a solution. Could you or anyone help? Thanks!

PinkCottonWood