I loove your videos! I have learned so much and feel confident with starting my work! Is it possible if you talk about persistent varaibles and ways to make oop just be specific to saved games?
This Video was a pretty good and solid overview about this topic, thank you for sharing it! It's like "if you know how to walk" you'll easy be able to "run". Understanding how "creating classes/subclasses" work, its pretty good to follow in particular, in my opinion.
Just a small note: you didn't notice that you lost 2x the enemy damage in HP at 29:21 - enemy dealt 17 damage but you lost 34 HP. That's because your enemy_turn function calls both deal_damage AND take_damage despite deal_damage already calling take_damage by itself.
It is incredibly bad practice to name a class Character while the Character function exists. Not only is it confusing, but you got lucky that it worked with the way python executes things. The class should be something like Person or Entity even if it's just an abstract class to inherit from.
Thanks! I don't have much use for a turn-based battle system right now, but I'm always happy to see a new video from you. Be well!
Thank you!
Thanks, this is exactly what I needed
I’ll look forward to this one!
I loove your videos! I have learned so much and feel confident with starting my work!
Is it possible if you talk about persistent varaibles and ways to make oop just be specific to saved games?
Great tutorial and gave me some ideas for a game. You could even replace the attack/defend with a rock/paper/scissors type of battle.
This Video was a pretty good and solid overview about this topic, thank you for sharing it!
It's like "if you know how to walk" you'll easy be able to "run".
Understanding how "creating classes/subclasses" work, its pretty good to follow in particular, in my opinion.
Just a small note: you didn't notice that you lost 2x the enemy damage in HP at 29:21 - enemy dealt 17 damage but you lost 34 HP. That's because your enemy_turn function calls both deal_damage AND take_damage despite deal_damage already calling take_damage by itself.
Question: Does creating the new Character class conflict with the existing predefined Character class in Renpy?
Yes. That was a mistake on my part, as pointed out by @HyJyncks. I would recommend calling it Actor or something similar instead.
It is incredibly bad practice to name a class Character while the Character function exists. Not only is it confusing, but you got lucky that it worked with the way python executes things. The class should be something like Person or Entity even if it's just an abstract class to inherit from.
Thanks for pointing that out! I normally use Actor as the name of the class...that was on oversight on my part. Thanks again!