Тёмный
No video :(

Easy Way to Make Jumping in PyGame! (7 Mins) 

baraltech
Подписаться 2,2 тыс.
Просмотров 31 тыс.
50% 1

📑 SUMMARY
In this video, I show you how to make jumping in PyGame. I show you how to use Python to create games and how to make games in PyGame. In this PyGame tutorial, I show you how to make jumping by creating Mario in PyGame (not really). I show you how you can use jumping in PyGame so that hopefullly, you can create a platformer with PyGame. You can also use this tutorial to make PyGame platfomer physics. Hopefully Susan likes my keywords 🥺.
🔔 SUBSCRIBE - bit.ly/baraltech
📧 EMAIL for Business - mailto:lartech2007@gmail.com
🔗 LINKS
GitHub: github.com/bar...
⌚ TIMESTAMPS
0:00​ | Intro/Demo
0:44 | Making Mario Jump
5:59 | Disclaimer
6:55 | Thanks for Watching!
🎬 MY SETUP:
💻 PC: Custom Built:
✅ Intel Core i5-10400F
✅ Gigabyte NVIDIA GeForce GTX 1060 3 GB WINDFORCE OC
✅ Gigabyte B560M DS3H AC
✅ G-Skill Ripjaws V DDR4-3200MHz CL16 RAM (2x8 GB)
✅ DeepCool MACUBE 110 Micro-ATX Case
✅ Western Digital Blue SN550 500 GB NVMe SSD
✅ EVGA 500 BR 80+ Bronze Power Supply
⌨️ Keyboard: Razer Huntsman Gaming Keyboard (Razer Opto-Mechanical Purple Switches)
🖥️ Monitor: Acer Nitro VG240Y
🖱️ Mouse: VicTsing 2.4GHz Wireless Mouse
🎙️ Mic: Blue Yeti USB Condenser Microphone
💻 Secondary Laptop/Monitor: Dell Inspiron 11-3185 2-in-1
🎵 MUSIC
Track: Rainy Paradise - Next Route & WOMA [Audio Library Release]
Music provided by Audio Library Plus
Watch: • Rainy Paradise - Next ...
Free Download / Stream: alplus.io/rain...
🏷️ TAGS
- PyGame
- Make Mario with PyGame
- Jumping in PyGame
- Make Games with Python
Hashtags:
#Python #PyGame #Mario

Опубликовано:

 

14 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@baraltech
@baraltech 2 года назад
Code - github.com/baraltech/Jumping-PyGame Thanks for watching!
@MowiWowi
@MowiWowi 2 месяца назад
So satisfying seeing code work so perfectly
@seba1842
@seba1842 2 года назад
This was the only thing I needed for my portion of the code in my group to be complete thank you so much!
@baraltech
@baraltech 2 года назад
Always glad to help. Thanks for watching!
@gamalielgerona2391
@gamalielgerona2391 2 месяца назад
Nice. Now I can enable jumping for my PyGame Slime Destroyer project. You got a subscriber.
@sasamak6474
@sasamak6474 Год назад
i found so much stuff that had like 10x your code and i understood your tutorial way better than all of the other ones ty for that
@baraltech
@baraltech 6 месяцев назад
Tysm my g
@Ishaan_Garud
@Ishaan_Garud 2 года назад
THANK YOU SOOOOOO MUCH!! I WAS MAKING MY GAME ENGINE, AND WAS Stuck BUT NOT ANYMORE BECAUSE OF YOU BE SURE TO CHECK MY ENGINE
@baraltech
@baraltech 2 года назад
No problem dude haha
@dualscreenchef8535
@dualscreenchef8535 2 года назад
Thanks to this video, I can break copyright correctly
@tasmiatasnim-pw7gm
@tasmiatasnim-pw7gm 28 дней назад
I don't understand one thing, y_pos = y_pos - jumpvel(10) wouldn't it go way up the screen then vel would become 9,8... to 0 won't this be beyond our screen. i get it how it goes up and then down but i didn't understand this part. Upward movement: 10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 = 55 units Downward movement: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55 units why it doesn't look like it jumped 55 units
@rajpulapakura001
@rajpulapakura001 Год назад
Clearly explained and simple! Exactly what I needed!
@Kal-elB
@Kal-elB 7 месяцев назад
Thank you! I never thought about how you'd make the character move up without teleporting it
@baraltech
@baraltech 6 месяцев назад
No problem!
@Ray-sb8qi
@Ray-sb8qi Год назад
I have an issue where my character will land a little bit higher than where he jumps from every time I jump. My variable values are the same as yours.
@alvo6375
@alvo6375 Год назад
me too
@Ganav_ha_shtihim
@Ganav_ha_shtihim 6 месяцев назад
the sprite can jump how much it want like flying not just one time it can go up infinatly help
@bhaveerathod2373
@bhaveerathod2373 2 года назад
THE BEST tutorial, thanks man, very handy indeed
@baraltech
@baraltech 2 года назад
Thank you so much!
@user-sw9em2ky2p
@user-sw9em2ky2p Год назад
really helpful thank you
@baraltech
@baraltech Год назад
No problem!
@KeyGilz
@KeyGilz 6 месяцев назад
cool tutorial, thank you. for some reason, mario_rect is at x=376 and y =568, so he's hovering over the ground... any ideas? i used the same values in the tutorial 400, 600
@realjonav
@realjonav Год назад
hey is there a way to make it so the "S" key would make you fast fall?
@thatanimeguy8461
@thatanimeguy8461 2 месяца назад
if key_pressed[pygame.k_s] gravity = bigger value than normal gravity
@Vitvab
@Vitvab 6 месяцев назад
very helpful tutorial, but how do i make it just fall though the ground and i cna make it jum again even if it doesn't stand on anything
@eternulized
@eternulized 2 года назад
Thank you for this video sir
@ahmadsyahmibinjamaludin1036
@ahmadsyahmibinjamaludin1036 2 года назад
Great video! My suggestion is you should also show how to make it in sprite class. I saw many people usually used sprite class since it is more organizable. Love the content😁
@baraltech
@baraltech 2 года назад
Thanks for the comment! I'll keep that in mind!
@romanward78
@romanward78 Год назад
Thanks man it works great. What does the boolean variable ‘jumping’ do in the code?
@user-uf4qp9ls4z
@user-uf4qp9ls4z 7 месяцев назад
what if the sprite is moving?
@pursuingcode1773
@pursuingcode1773 2 года назад
solid tutorial my dude
@baraltech
@baraltech Год назад
Glad you liked it!
@BardockSuperZ
@BardockSuperZ 3 месяца назад
Nice tutorial , i copied the logic of your tuto for apply in the ursina engine
@baraltech
@baraltech 3 месяца назад
No problem! :)
@lovelivevike5507
@lovelivevike5507 7 месяцев назад
got a subscriber at 2:30 sec in =)
@baraltech
@baraltech 6 месяцев назад
Thank you :)
@abulhasan923
@abulhasan923 Год назад
Really helpful but I want horizontally long jumps and this tutorial made the character jump very short horizontally... Please can anyone help?
@UXER260
@UXER260 Год назад
Nice video! You could fix the 20 division bug if you use ‘floor division’ (‘//‘ instead of ‘/‘ and then multiply it by twenty
@baraltech
@baraltech Год назад
Thank you!
@UsernameaBad
@UsernameaBad 28 дней назад
thanks
@matrixneo2412
@matrixneo2412 Год назад
Hi i know my comment is late and idk if you will see this but i wonder if you could make a video so your character can be able to left or right anyways thanks for this tutorial
@pranavnair3282
@pranavnair3282 2 года назад
Help! What is Y_POSITION equal too?
@papajowapapaja2759
@papajowapapaja2759 6 месяцев назад
Cool, thx!!!
@baraltech
@baraltech 6 месяцев назад
No problem!
@seal6978
@seal6978 2 года назад
Thank you so so so much.Your amasing!!!!
@baraltech
@baraltech 2 года назад
No problem! Thanks for the comment!
@noodle69
@noodle69 Год назад
very helpful thank you
@baraltech
@baraltech Год назад
No worries!
@tskvito5494
@tskvito5494 Год назад
for some reason it jumps and never comes down, i checked 100 times and i cant find the difference between my adn your code
@baraltech
@baraltech Год назад
Try copying it
@cws03
@cws03 Год назад
why are you using all caps?
@sploosh2857
@sploosh2857 2 года назад
Gravity
@anya637
@anya637 2 года назад
😌 ᴘʀᴏᴍᴏsᴍ
@jasonsworld333
@jasonsworld333 2 года назад
This is no good because you dont show how to find the charcter location. thats the most important part so this is useless to me
@baraltech
@baraltech 2 года назад
Thanks for the feedback. You can find the character location by referencing its rect’s x and y properties. Ex. print(mario_rect.x). Sorry you feel that way about the video and hopefully this helps!
@jasonsworld333
@jasonsworld333 2 года назад
@@baraltech This is a common problem I'm seeing amongst pygame tutorials. If you can find a way to do an easily scalable tutorial for all little elements like movement, assets, camera, etc... and explain them in depth everyone is making pygame tutorials but very little explanation of how to copy that to your code in a generalized way. These tutorials are saying what to do with a tool vs actually describing the tool. One of them puts viewers in a position to mimick you, the other puts the viewer in a position to mimick the concept.
@dole1393
@dole1393 Год назад
This is a scam.
@dole1393
@dole1393 Год назад
This is a scam.
@dole1393
@dole1393 Год назад
This is a scam.
@baraltech
@baraltech 6 месяцев назад
How so
@goodlookinouthomie1757
@goodlookinouthomie1757 4 месяца назад
@@baraltech It's a bot
Далее
Scrolling Backgrounds in Pygame
7:53
Просмотров 84 тыс.
2 YEARS of PYTHON Game Development in 5 Minutes!
4:54
Просмотров 892 тыс.
I Built a Trampoline Park in My House!
29:50
Просмотров 11 млн
Making a Game in Python with No Experience
5:57
Просмотров 1,6 млн
I'm Coding an Entire Physics Engine from Scratch
9:19
Creating an animated button in Pygame
32:49
Просмотров 35 тыс.
Menus - Pygame Tutorial
7:37
Просмотров 172 тыс.
I made Games with Python for 10 Years...
28:52
Просмотров 309 тыс.
HOW TO MAKE PONG IN PYTHON AND PYGAME! (15 Min)
17:29