Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Messing around in new source
#17
[Image: newchar.png]

Classes are now stored like:

Code:
[CLASS1]
Name=Warrior
MaleSprites=0,1,4,7,8,9,13,16
FemaleSprites=0,2,11
STR=5
DEF=4
Speed=2
MAGI=0

[CLASS2]
Name=Wizard
MaleSprites=0,5,13,14,6
FemaleSprites=0,10,15,3
STR=3
DEF=3
Speed=1
MAGI=5

When loaded, the Sprite strings will be split up into an array. When making a new character, player's can scroll through the array and choose the sprite that they want to start with. Each class can have a different array of sprites for each sex.

Big thanks to Jacob for giving me the idea of storing them in a string and splitting it up.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)