Page 1 of 1

Chao Stats

PostPosted: Mon Nov 14, 2011 8:08 pm
by Hblade
Hey I need some help. I want to make it so that the higher your chaos level is, the faster he swims.. How can I do this O-o? I tried:
Code: Select all
y+=CHAO_SWIM/9;


which failed xD... dag-nabbit. The max level is 99.

Re: Chao Stats

PostPosted: Mon Nov 14, 2011 11:20 pm
by skydereign
How does that fail? If you have a variable, and increase it, you can use it like in that example. But if that isn't what you wanted, then what is?

Re: Chao Stats

PostPosted: Tue Nov 15, 2011 12:21 am
by Hblade
I know, I figured it out. What I needed to do was ensure the speed didn't go TOO fast, so I did this
Code: Select all
x-=1+(TM_SWIM/9);


What is TM_SWIM? Its a temperary "SWIM" variable that is equal to the Swim level, but this variable is a real while the swim variable is an integer.


It failed because the integer can't go below 1 unless its 0