Making A Python Text Adventure/RPG | Part 4 | Traveling & Random Pickups

preview_player
Показать описание
Part 4 in my series on how to make a python text adventure. In this video we develop a travel system as well as enable random pickups!

Game Studio Accounts:

Completed Code/Python File:

Play The Game:

Development Setup -

Youtube Setup -
Рекомендации по теме
Комментарии
Автор

I wanna comment before I go onto the next part. I absolutely appreciate this series. I have been trying to make a game like this for about 2 weeks now and I almost gave up. I kept running into issues where I was just repeatedly typing print("Insert Text Here") and was getting annoyed that it was taking me so long to get from one area to another. I am brand new to python and I didn't understand the functions. Now that you have actually explained the functions it sparked my energy to keep going. I'm gonna follow the last two of your videos and then I'm gonna go make my own now that I have the tools necessary to do it!

ThatAries
Автор

So just done doing the traveling loop before going onto random pickups and combat. I feel I wrote the code as you did but when trying to travel to home I got an infinite loop as I would always travel 0 miles. Realised it was because home was set to 0 and 0 / by anything is 0 so when trying to travel home it couldn't be done....so I added a distanceToDestination function that would determine the distance between current location and the destination and then the distance divider would use that to generate a random distance. I also put the distance divider and distancetraveled inside the while loop so that each joureny/turn/day the player would travel a random distance. I will probably edit this before moving to the next video

skeletorusgaming
Автор

, ,this should have been a comma why didn't you guys say anything"
me: screams silently, ,I did XD, ,

citroes
join shbcf.ru