11-13-2010, 02:02 PM
(11-13-2010, 09:56 AM)pers2981 Wrote: What i mean is i dont want to have to write code for every level my game is going to have up to 1000 levels so... I was wondering if i could just put somthing like this in a txt doc
1=250
2=500
etc (level and exp)
and make the program read it and do the work...
if each level increments by 250 then you wont need to read from a text. just do what thanasis2028 said.
exp += 250 * monsterlv
which is the same thing as
exp = exp + 250 * monsterlv
I code at http://tech.reboot.pro