x


Storing away monsters

I'm working on a mon game (Pokemon, Digimon, Monster Rancher, etc) and i'm having a hard time figuring out how i want to handle the stored, monsters should i put them in some kind of array or list not to mention what i also have to do with their stats. can anyone suggest how to proceed?

more ▼

asked Jul 09, 2012 at 06:21 AM

Sinperhezine gravatar image

Sinperhezine
86 39 53 63

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

It sounds like you need a class to describe monsters(possibly one for each monster, inherited from a base class) and then hold instances of that class (or those classes) in a List.

If you mark your class as Serializable then you will be able to edit the properties of the monsters in the Unity inspector.

more ▼

answered Jul 09, 2012 at 06:37 AM

whydoidoit gravatar image

whydoidoit
53.4k 59 76 205

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2155
x827
x44
x39
x4

asked: Jul 09, 2012 at 06:21 AM

Seen: 558 times

Last Updated: Jul 09, 2012 at 06:38 AM