Pygame RPG Tutorial #12 - Finishing Up

  Рет қаралды 17,623

ShawCode

ShawCode

Күн бұрын

In this Pygame RPG Tutorial, we clean up the code and fix a couple of bugs that were in the game.
If you found this video helpful, please leave a like, and if you want to see more python tutorials, subscribe!
This is the final video in the Pygame RPG Tutorial series. If you have any suggestions as to what tutorials you would like to see next, please. leave a comment down below. I am thinking of doing a Python 3D Graphics tutorial using PyOpenGL.
Thanks for watching!

Пікірлер: 66
@tomasdelpino932
@tomasdelpino932 7 ай бұрын
Almost my entire class followed your tutorial. I wanted to thank you for such a great series, you made it all so easy to follow and understand, I could really tell you are passionate about programming and that you're gonna have an amazing career. I know you went inactive a while ago but I hope someday you come back and keep educating people like myself, I believe you are quite gifted. Thank you!
@ZimmoYT
@ZimmoYT 3 жыл бұрын
Just finished it, followed all the videos while trying to understand everything now ill be working on expanding the game thanks for everything kearnt a lot!
@ShawCode
@ShawCode 3 жыл бұрын
I'm glad you found it useful!
@ajojen6346
@ajojen6346 2 жыл бұрын
This tutorial series was awesome! I liked how organized the code was and how you took the time to explain each concept. I'm excited to play around with the game now and see what I can make. Thanks so much!
@ShawCode
@ShawCode 2 жыл бұрын
Glad it was helpful!
@RadicalEdward_115
@RadicalEdward_115 2 жыл бұрын
Thanks for giving a top notch explanation of the process. You my friend, make sense
@ShawCode
@ShawCode 2 жыл бұрын
Glad to help :)
@ehsam8202
@ehsam8202 2 жыл бұрын
i really really like how you set up the code to be easer to edit in the future. Like instead of having our screen values or whatever hidden in the code its placed as an easy to find variable which makes it way easier to change. Keep up the great work.
@PikadaveStudios
@PikadaveStudios 2 жыл бұрын
Bro, I went from thinking it takes 1 trillion lines to make a blue circle to "spritesheet ez" in pygame cuz of these videos. Thanks man!
@ShawCode
@ShawCode 2 жыл бұрын
Glad it helped!
@PikadaveStudios
@PikadaveStudios 2 жыл бұрын
@@ShawCode Sorry for late reply, but if you want, I can credit you on the project I'm working on :D
@sothwick80
@sothwick80 Жыл бұрын
Just finished this tutorial. I am easily adding in the elements I want in my game thanks to your great explanations and coding segments. Even re-watching a video I find small things I've missed, there's tons of great info in these! Thank you for taking the time to make them 😁👍
@user-qu7sp3wn4n
@user-qu7sp3wn4n 2 жыл бұрын
Went through the whole series. Learned a lot!!! Thanks so much!!!
@ShawCode
@ShawCode 2 жыл бұрын
Glad it was helpful!
@Vinhilla
@Vinhilla 2 жыл бұрын
Hey love the videos! They're really informative and easy to follow. I was wondering if you could do a tutorial on transitioning between different maps/zones and also a tutorial on adding sound effects/background music because that would make the game so much cooler
@mikihara_tsukiko
@mikihara_tsukiko Жыл бұрын
Amazing tutorial! Wonder if you'll be making tutorials for more game transitions in future (e.g. walking into another room), making dialogue boxes, etc. Appreciate this list so much!
@theghosty10
@theghosty10 5 ай бұрын
Thankyou for teh great tutorial, this has been incredibly informative and useful
@MyriadColorsCM
@MyriadColorsCM Жыл бұрын
Thank you nso much for this tutorial, that was great.
@robloxyt2895
@robloxyt2895 Жыл бұрын
How to expand the map? Or add a portal/stairs to other place
@ararrara6169
@ararrara6169 2 жыл бұрын
How can I change the tilemap during the game? For example to enter the house you need to touch the door tile and the tilemap should change. I’m stuck with this Please help
@patrikpatrik8421
@patrikpatrik8421 Жыл бұрын
How do i make it so when the camera follows the guy there is no black background ?
@fernandoclaro2136
@fernandoclaro2136 7 ай бұрын
Thank you very much for the tutorial!!
@ryleybulmer6282
@ryleybulmer6282 8 ай бұрын
2 years late but I have an alternate, potentially more simple, way to keep the player centered in the camera. In the player movement function, when reading the keyboard input, i simply created a temporary "check_rect" in front of the direction the player is trying to move, and if the check_rect collides with a wall, just return, which aborts moving the sprites and the player, disallowing you the player to move from the centre of the screen.
@kainu.9005
@kainu.9005 Жыл бұрын
I'm having some questions about items drop from enemies...
@nowifi3266
@nowifi3266 2 жыл бұрын
Is the code available? I finished the tutorial (amazing btw!) and im getting an error that i dunno how to fix. if there is a link to the source code, i'd like to check my code against yours. tysm for this tutorial!
@stephaniehenderson2346
@stephaniehenderson2346 3 ай бұрын
I've noticed that if you press two arrow keys, go diagonal (strafe), and collide with a corner, the camera keeps moving. Can you suggest a way to fix it?
@arnoldshavings7326
@arnoldshavings7326 Жыл бұрын
works, great tutorials
@HiVisChan
@HiVisChan 5 ай бұрын
Hi there. Is there a possible way to make sure the player always stays in the center of the camera?
@sam57719
@sam57719 2 жыл бұрын
Loved the series!! Are you going to share the code? I saw a comment on a previous episode that you would share the code at the end
@HLubenow
@HLubenow 9 ай бұрын
I think, he wants you to follow him from tutorial #1 and write the code yourself (which is what I did - was fun). In the description of video #4, he posted a download-link for the spritesheet images though.
@aeiou3701
@aeiou3701 Жыл бұрын
Hi, instead of the enemy killing the player I made it push the character however this messes with camera and it becomes offset is there a way to recenter the camera or possibly move the camera with movement of the character without the controls
@musllaq7123
@musllaq7123 Жыл бұрын
Thanks.
@vishwajeetyewale9435
@vishwajeetyewale9435 3 жыл бұрын
Nice video !
@ShawCode
@ShawCode 3 жыл бұрын
Thanks!
@philtoa334
@philtoa334 3 жыл бұрын
ok good job , thx.
@ShawCode
@ShawCode 3 жыл бұрын
Thank you too!
@PikadaveStudios
@PikadaveStudios 2 жыл бұрын
i have quite a few questions: how would i do a battle system similar to the Mario and Luigi games, how do i do rpg text, and how do i change rooms?
@abd_cheese7353
@abd_cheese7353 2 жыл бұрын
For different rooms, i would suggest a level handler to render different tilemaps you could make. Rpg text could be its own class like the button class, but where clicking skips text or something, and the mario and luigi thing is probably a different style of rpg
@ShawCode
@ShawCode 2 жыл бұрын
Sorry for the late reply, but yes, Abd_chees e is right.
@PikadaveStudios
@PikadaveStudios 2 жыл бұрын
@@ShawCode K thank you (also no worries)
@PikadaveStudios
@PikadaveStudios 2 жыл бұрын
@@ShawCode also I'm not sure how to make a level handler
@ShawCode
@ShawCode 2 жыл бұрын
@@PikadaveStudios You could have multiple tilemaps defined in config.py, and when you want to change rooms/maps, clear the entire screen and redraw the other tilemap. Let me know if you need anymore help!
@hanumau3816
@hanumau3816 2 жыл бұрын
This series was very useful thank you. A quick question how would you add a health bar in it, I've coded all the logic of it in the player class but it doesn't show in the screen :(
@ShawCode
@ShawCode 2 жыл бұрын
If you have the health as an attribute in your player class, you could draw a rectangle on the screen, and change the length of it depending on the amount of health the player has.
@kyoujinko
@kyoujinko 2 жыл бұрын
Hi, I have been using your guide for my RPG, which has really helped. I am hoping though you can help me with one thing that I am stuck with. What I am trying to do is make objects on the screen interactable. For example, when you are touching a bookcase and press an interact button it blits on screen a message box, or if next to a chair you can push the chair. I am really struggling to get this to work, so any help would be great, thanks
@ShawCode
@ShawCode 2 жыл бұрын
If you are still struggling with this, you could make it so that if the player is colliding with the interactive object boundary + 1 pixel, the function you would like to do would execute. The hitbox for interaction would have to be one pixel larger than the object itself.
@BatMan-mk8tf
@BatMan-mk8tf 3 жыл бұрын
Hi buddy do u know machine learning and AI if u know about it try to put videos about it u will get more views and we will get more knowledge and the world will go to the next level very fast
@ShawCode
@ShawCode 3 жыл бұрын
Thanks for the suggestion, I don't know much about ML, but I might learn it and make some videos on it!
@MedTech1
@MedTech1 3 жыл бұрын
Nice 🙂
@ShawCode
@ShawCode 3 жыл бұрын
Thanks :D
@letsgobray3254
@letsgobray3254 3 жыл бұрын
When I run it it just says 'Game' object has no attribute 'all_sprites
@ShawCode
@ShawCode 3 жыл бұрын
Please could you copy and paste your main.py for me to look at?
@jeffreysharpton5874
@jeffreysharpton5874 Жыл бұрын
Hey there, went through this and loved it! Long story short I lost my code and started over and now my game window only renders black and doesn’t apply the title. Could you add a file with final source code for all three sheets? Trying to see where I forgot something but it’s crazy difficult without being able to go line by line lol
@jeffreysharpton5874
@jeffreysharpton5874 Жыл бұрын
Alright turns out somehow the () after pygame.display.update got deleted lol BUT my point remains, it would be great to have a reference at the end!
@ginuwinejackson5842
@ginuwinejackson5842 2 жыл бұрын
Why dont u share your code tho like on github or smtn some of us need to look through the coding and most persons doin tutorial always leave a link to the code
@ichvishnisht
@ichvishnisht 3 жыл бұрын
Hey great tutorial, really helping me get started using pygame. I did run into an issue recently, I copied the code done through this tutorial and it was working fine, then out of nowhere today it started giving me. "maximum recursion depth exceeded while calling a Python object." error, and brings me back to a line in the Block class pygame.sprite.Sprite.__init__(self, self.groups), and then more into the pygames library itself, if you happen to know why its doing this I'd appreciate the help. Keep up the great videos!
@ShawCode
@ShawCode 3 жыл бұрын
Thanks! Could you please copy and paste your code for me to look at?
@ichvishnisht
@ichvishnisht 3 жыл бұрын
@@ShawCode Ah I have figured it out, apparently somehow a * was deleted from my pygames.sprite.py so it was simply an error on my end with my library.
@alejandrojimenez8927
@alejandrojimenez8927 7 ай бұрын
Thank you very much for your tutorials, you are the hero of 2Dam. We love you Fernando
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 713 М.
I tried to make a Valorant AI using computer vision
19:23
River's Educational Channel
Рет қаралды 1,5 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 47 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 55 МЛН
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
Pygame RPG Tutorial #1 - Pygame Tutorial
19:31
ShawCode
Рет қаралды 94 М.
How I installed the HARDEST operating system
34:40
Bog
Рет қаралды 373 М.
I Built The First LAMINAR FLOW ROCKET ENGINE
15:51
Integza
Рет қаралды 2,1 МЛН
What's The Longest Word You Can Write With Seven-Segment Displays?
8:56
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 4,8 МЛН
Isometric Rendering - Pygame Tutorial
13:11
DaFluffyPotato
Рет қаралды 41 М.
Making a Game in Python with No Experience
5:57
Goodgis
Рет қаралды 1,7 МЛН
What happens if you connect Windows XP to the Internet in 2024?
20:35
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 47 МЛН