Це відео не доступне.
Перепрошуємо.
Pygame Framerate Independence Tutorial: Delta Time Movement
- Додати в
- Мій плейлист
- Переглянути пізніше
- Поділитися
Поділитися
Вставка
Розмір відео:
- Опубліковано 19 сер 2024
КОМЕНТАРІ • 78
Наступне
Автоматичне відтворення
Pygame Game States Tutorial: Creating an In-game Menu using StatesCDcodes
Переглядів 30 тис.
It's brutal to be a gamedev right now...BiteMe Games
Переглядів 47 тис.
Math for Game Developers - Jumping and Gravity (Time Delta, Game Loop)Jorge Rodriguez
Переглядів 202 тис.
Справжнє кохання | GOVOR TikTok #govor #shotsGOVOR
Переглядів 162 тис.
😳 Все русские уже знают итальянский?🇮🇹Super Italiano
Переглядів 6 млн
Втрачене дитинство | GOVOR TikTok #govor #shotsGOVOR
Переглядів 430 тис.
skibidi toilet 77 (part 1)DaFuq!?Boom!
Переглядів 20 млн
Making an Executable from a Pygame Game (PyInstaller)DaFluffyPotato
Переглядів 104 тис.
I run untested, viewer-submitted code on my 500-LED christmas tree.Matt_Parker_2
Переглядів 10 млн
Pygame Sprite Sheet Tutorial: How to Load, Parse, and Use Sprite SheetsCDcodes
Переглядів 51 тис.
Cameras in PygameClear Code
Переглядів 118 тис.
Getting The Game Loop RightVittorio Romeo
Переглядів 30 тис.
I Made Multiplayer Gamedev EASY!DaFluffyPotato
Переглядів 41 тис.
Source Engine Tick System ExplainedPinsplash
Переглядів 128 тис.
Menus - Pygame TutorialDaFluffyPotato
Переглядів 172 тис.
Using AI to Create the Perfect Keyboardadumb
Переглядів 1,4 млн
Курск и Суджа России НЕ НУЖНЫ? ПОЗОР Ахмата | Антизомби 2024 - 30 полный выпускТелеканал ICTV
Переглядів 761 тис.
КУРСЬК, СПИШ? | Упс, а що трапилось #75Aleksey Durnev
Переглядів 780 тис.
ПОЛЬЩА на межі КАТАСТРОФИ. Українці МАСОВО їдуть з країни. Що сталося?Ми - Україна
Переглядів 1,2 млн
КУДА ДАЛЬШЕ ДВИНУТСЯ ВСУ? БЕСЕДА С ЮРИЙ ФЕДОРОВФЕЙГИН LIVE
Переглядів 555 тис.
Running With Bigger And Bigger FeastablesMrBeast
Переглядів 106 млн
Можно ли пропускать завтрак? #эндокринолог #питание #диеты #правильноепитаниеВлад Аганов
Переглядів 4,1 млн
😭ЛЮДИ ВОВКАМИ СТАЮТЬ....5 канал
Переглядів 3,1 млн
Sad To Announce I Did Not Qualify For Mens 2024 Olympic Gymnastics TeamThe Rock
Переглядів 28 млн
Thanks for the clear explanation. I like that you show visuals and comparisons, they really help me understand why should I use it and how I can implement it!
Glad to hear!
Hey Man! Thx so much, really helped me with my first steps.
Glad I could help!
Thanks so much! Before I implemented this in my Adventure / RPG that I am currently working on for my Master's thesis, the velocity of my characters would shift when both were moving (one was faster when the other one was standing still and vice versa). This fixed it :)
Awesome! Looking to work on a Master's myself next year, glad I could help!
Thanks for the upload Chriss!
Thanks for watching : )
thanks for the knowledge!
You're welcome sir!
Superb bro
This is the best video on frame independency
Thank you!
First, I wanted to write code like this to calculate that stuff, but decided to search on youtube. Thanks, man., you did it for me.)
Just found your channel. I'm working on a simple arcade shooter for my first entry to GameDev using Python and pygame. Been working on it for couple months and been stuck on a detla time error. I like how you explain things and showing visuals along the side. It's really helping me understand coding a ton. Glad to have found your channel.
Glad you found it helpful! Best of luck on your game!
Nothing short of amazing. We all needed this hero!
Appreciate it!
Thank you so much! This was exactly what I was looking for.
Glad it helped!
You almost sound exactly like SerpaDesign 😂
Anywaay very good video! Cut right to the point, appreciate it!
Thanks! Haven't heard of SerpaDesign, but now I'm curious to check out his channel haha
I love the trick it makes a lot of thing less complicated
really nice video and you explain very good. Get him to 1K subs!
Useful tutorial, thanks.
Thanks, it was really helpful!!
Glad it helped!
Thx. Helped alot!
you are a hero
This Video helped alot and i like ur demo ^^ Thank you!
Glad it helped!
Thanks a lot, cleared up a lot of confusion!
Glad to hear that! Took me a bit to wrap my head around it too
Thank man
Life saver🙏
Love it!
Thanks a ton 🙏
Happy to help!
Thanks man!
Happy to help!
Awesome tutorial!
Thanks!
Flash banged!
Lol I am your 46'6' subscriber!!!
Great tutorials.
Thanks for supporting the channel!
im his 22nd subscriber
hmm, its rarely to see ppl use pygame, kepp going bro
Thanks! Been a little busy with school, but I do have more videos in the works : )
thanks
Thank you for this video, i am just learning python and i made a pong clone and guess what my pc did
yup the pong ball went brrrrrrrrr
I've actually been having an issue that I think might tie into this topic. Basically, after a while of running my code, my window would get these very faint white borders around it and my framerate would become very inconsistent. There would also be some noticeable screen tearing. If i set my framerate to something absurdly high, as soon as those white border appear, my character wouldn't move right at all.
Nice video
Thank you : )
nice work!
You should try UPBGE fork of blender, it's like PYGAME on steroids.
Oh wow, I'll have to check it out Thanks for the recommendation!
**then velocity change enters the room**
meaning that you need to find the average value of velocity when acceleration is involved. Adding acc*dt to the velocity and vel*dt to the position does not give you the exact position at that point, but the position between that point and next point. And of course this difference can ruin your physics engine giving different output by varying framerate.
I joined ur discord group. I didnt know you had one lol
Just made it!
I love u
I don't understand the last step. Everything was working properly, wasn't it? Why would we need to add "target fps"?
Thats for people who started a game but didn't have framerate independence in mind. It can adjust their physics so that it matches what they were previously aiming for. If you started your game and implemented delta time from the beginning, no need to worry about that step.
QUESTION: Is there a way to hard code a game sprite and then have them called from a class? For instance, code - draw a character like Mario, or a simple pixel character, (of 2 or 3 frames of movement in a sprite sheet - hard coded,) VS using png files, and then be able to call the sprite from a class, and move them about on the screen using keyboard arrow keys? Is this possible?
In Pygame. .. Thanks!
Definitely. Checkout my video on spritesheets. You can combine that with the tile game tutorials to make the sprite move.
for some reason because of how I programmed my game or something, multiplying by dt just makes everything super slow
nvm i didnt watch the rest of the video lmao
Glad you figured it out!
everything stops moving when i added delta time, can you help me?
Check if your delta time variable is zero. That would cause all movement to stop
Is there a chance this would work in plain python?
@Jamin I asked this 6 months ago I don't even work with python anymore...but thank you I guess.
@@karsaimihaly lol
hey you sounds like kidscancode
I actually started learning with some of his tutorials
It this kind of method work for rhythm games?
It will work for all games
Thank you for the great explanation! But I've got a question. When I tried printing out dt for each iteration, I got dt = 97683152328.39076 for the first few iterations. Its a very huge number and I'm not sure what's causing this.
Hey! Thanks for watching the video. I tried to recreate your problem but wasn't able to. If you'd like, you can share your script on discord and i'll take a look there