In the game I’m trying to write I would like to have multiple enemies each with their own set of attributes (enemy type, life, speed etc). What is the easiest way of storing the details of any active enemies (adding them as new ones are spawned and deleting them as they are killed)?
One of the guys I work with wondered if Lua has a ‘type’ function similar to that in Blitzbasic which would be perfect for what I need. The closest I can find is the display group, but I can’t see how that can store the different attributes of each child member.
Thanks. [import]uid: 7841 topic_id: 10284 reply_id: 310284[/import]
[import]uid: 3826 topic_id: 10284 reply_id: 37597[/import]