|
-
[CS3][AS2] Nesting Objects Inside Other Objects?
I'm trying to organize the massive amount of coding I'll need to do for an RPG I'm making before I get too far into it and realize I have to modify 1800 lines of code because I didn't plan things out ahead of time. Plus it'll make managing the game data easier, especially with saving. So what I'm trying to figure out is if it's possible to nest a set of objects within another object.
For example, I want to have a main container object called charContainer, inside of which I'll have individual character objects (char1, char2, char3, etc.). Inside of those character objects I'll store all of the character-specific variables like stats and equipment. Then I'll do the same thing with my other variables for enemy stats, items, and everything else.
So is this possible? Or is there a better way of organizing things? Any help would be appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|