Chao Stats

Non-platform specific questions.

Chao Stats

Postby Hblade » Mon Nov 14, 2011 8:08 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Chao Stats

Postby skydereign » Mon Nov 14, 2011 11:20 pm

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?
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Chao Stats

Postby Hblade » Tue Nov 15, 2011 12:21 am

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest