Posted By
|
Message
|
Jake G
Registered 06/03/2010
Points 782
|
18th September, 2013 at 18/09/2013 01:36:32 -
For my current project, I plan in using a turn-based battle system with up to three enemies. What's the best way to have data (health, attack power etc.) for each specific enemy stored somewhere to be referenced in the appropriate enemy slot in battle.
Visit www.voltic.com.au - you probably won't regret it!
~Gradually getting less bad at making games~
|
Chris Donovan
Registered 15/06/2003
Points 448
|
18th September, 2013 at 18/09/2013 03:21:42 -
I don't know if it's the best way, but why not just store them in the enemy object's variables? Just make sure that the variable name and slot (a,b,c...) match between all of the objects in case you want to use qualifiers.
Send me feedback on my latest game, It Never Ends.
http://www.misterdonovan.com/it-never-ends/info/
|
Jake G
Registered 06/03/2010
Points 782
|
18th September, 2013 at 18/09/2013 13:25:24 -
I... didn't actually think of that! Sometimes the overlooked simplest solutions may be the best ones!
Visit www.voltic.com.au - you probably won't regret it!
~Gradually getting less bad at making games~
|
Chris Donovan
Registered 15/06/2003
Points 448
|
19th September, 2013 at 19/09/2013 04:33:20 -
Try it out, and keep us updated!
Chris
Send me feedback on my latest game, It Never Ends.
http://www.misterdonovan.com/it-never-ends/info/
|
|
|