- Mar 15, 2021
- 196
- 621
Hello! Long time, no see.
I'm trying to figure out what Class really is in Python. I figured, doing things like this, will be a lot easier. Any help is highly appreciative. (Seriously!!)
What I'm trying to do is create a bunch of NPCs, but actually, they are Survivors of my game and it's needed to "Play" them. The gameplay is much like Rebuild 2(Flash game, can play it on NewGrounds) and I plan to add a battle system for it, too, so I'm not copying off of others.
I did get close to the gameplay but... the codes are really amateurish looking(I mean, I'm literally pass 7000 lines of codes...). It's basically a copy and paste crap. I created a bunch of layeredimage and... yeah. So far, I got up to 100 characters. But if I can make that less code and more characters... That would be great. I'm trying to make things infinite, in a way. I'm just hoping someone can teach me a bit about what I'm looking for and how to use it.
Example would be, I guess... to create it with Variables within Class. That's it for NPC.
For the Character Selection, it's basically connected to the NPC. The more the players recruit, the more that gets added to the list of Characters. How do I solve this?
Sorry for the long talk. I've honestly been working on it for the past month and a half. Only a week ago that I started looking into this issue. If you don't want to help me out for free, the very least I can do is draw as... I'm broke as the next person.![Laugh :LOL: :LOL:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I'm trying to figure out what Class really is in Python. I figured, doing things like this, will be a lot easier. Any help is highly appreciative. (Seriously!!)
What I'm trying to do is create a bunch of NPCs, but actually, they are Survivors of my game and it's needed to "Play" them. The gameplay is much like Rebuild 2(Flash game, can play it on NewGrounds) and I plan to add a battle system for it, too, so I'm not copying off of others.
I did get close to the gameplay but... the codes are really amateurish looking(I mean, I'm literally pass 7000 lines of codes...). It's basically a copy and paste crap. I created a bunch of layeredimage and... yeah. So far, I got up to 100 characters. But if I can make that less code and more characters... That would be great. I'm trying to make things infinite, in a way. I'm just hoping someone can teach me a bit about what I'm looking for and how to use it.
Example would be, I guess... to create it with Variables within Class. That's it for NPC.
For the Character Selection, it's basically connected to the NPC. The more the players recruit, the more that gets added to the list of Characters. How do I solve this?
Sorry for the long talk. I've honestly been working on it for the past month and a half. Only a week ago that I started looking into this issue. If you don't want to help me out for free, the very least I can do is draw as... I'm broke as the next person.