The Daily Click ::. Forums ::. Klik Coding Help ::. character creation?
 

Post Reply  Post Oekaki 
 

Posted By Message

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
1st December, 2008 at 16:37:53 -


Originally Posted by Muz [AFK]
Be specific, lol.

1. Determine everything you want to do. Character stats, strength, HP, whatever.
2. Put them into an array or INI file. Or some other file. Arrange it.
3. Create the interface in MMF for putting the stats into the array.
4. Load it whenever you need it.



Very good advice here. I would also HIGHLY recommend if you use an array to write down every position you use in a notebook too. Large arrays can be very confusing to try and remember where everything is sometimes without notes!

ex.

Value: Desc:
===== =============
0 Player's HP
1 Player's class
2 Class recolor
3 experience points
4 to next level
5 Offensive Power
6 Defensive Power


 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
2nd December, 2008 at 00:45:51 -

thanks guys! youve been so much help, also, for anyone whos wondering, the idea for the character creation is to be able to completely customize your character, so you could choose from different hands, feet, body styles, hair style, and when you equip armor it would show it, (keep in mind the characters arent human, if anyone wants to see them ill post a picture) so in other words, i want it to be very advanced when it comes to making the character. but just one question, whats an array? ive never really used arrays or inis, or maybe i have and just dont know it... any way an explanation or link would be cool if anyone could produce one. thanks again everyone!

 
[Game design makes my brain feel like its gonna explode.]

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
2nd December, 2008 at 19:38:28 -

Yikes how to explain an array..

Hmmm, well I guess you could think of it as one big box with a lot of little boxes inside of it, all in rows and columns. Each row would be one "dimension" of this array, and the columns would be the other (if needed). Each box can hold one value either numerical or string however I always use numerical. MMF has an array object that lets you define what you'd need for your game and as far as I know there are no limitations for it but a large array can be a pretty big file.

A single-dimension array could be written for one character's inventory like this:

PlayerGear(1)
PlayerGear(2)
PlayerGear(3)
PlayerGear(4)
and so on..

Where the place in the array would be his gear's position in the inventory.

---

A double-dimention array for a party of 3 characters would look something like this:

PlayerGear(1,1)
PlayerGear(1,2)
PlayerGear(1,3)
PlayerGear(1,4)

PlayerGear(2,1)
PlayerGear(2,2)
PlayerGear(2,3)
PlayerGear(2,4)

PlayerGear(3,1)
PlayerGear(3,2)
PlayerGear(3,3)
PlayerGear(3,4)
and so on..

In the double-dimension array example the first place in the array would be either the 1st, 2nd, or 3rd character. The 2nd place in the array would be his gear's position in the inventory.

It's much easier to do than to explain, at least for me. I hope some of this helps a bit.


Edited by Del Duio

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
2nd December, 2008 at 19:49:58 -

umm that made some sense, you say it easier to do than explain so i may just fiddle with it for a little bit and see what i can do.

 
[Game design makes my brain feel like its gonna explode.]
   

Post Reply



 



Advertisement

Worth A Click