So I managed to spawn NPC's of the same type in multiple locations. But now I'm having trouble updating them correctly. I have a start class(includes game loop), a levelLoader class(where I create and spawn NPC's appropriate for the level), and a seperate class for each NPC(each has it's own spawn and update method. I need to update each NPC from the Start class, but since I created the object in the LevelLoader class I can't update the correct variables of each NPC. I can't spawn the NPC's in the Start class because the LevelLoader class decides which NPC's to spawn depending on the level. I'm not sure if I said this in a very understandable way, but any help would be appreciated.
Nils 762Member Since 09 Sep 2013
Offline Last Active Nov 28 2013 12:27 AM
Beginner programmer, noob.
- Group Members
- Active Posts 11
- Profile Views 1,731
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
Steampunk, minecraft, music, industrial, dubstep, programming, 3D modeling.