| View previous topic :: View next topic |
| Author |
Message |
haxx_blaster
Joined: 20 Jan 2006 Posts: 13
|
Posted: Fri Jan 20, 2006 4:26 pm Post subject: Where does this go wrong? |
|
|
I want to regulate my speed settings so it can't go past 20 or 1, but it ends up that i can't change the speed during the game.
Please help me out.
| Code: | if speed >= 0 then
speed = 1
end
if speed >= 21 then
speed = 20
end |
|
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Jan 20, 2006 5:00 pm Post subject: |
|
|
| First line should be <= |
|
| Back to top |
|
 |
haxx_blaster
Joined: 20 Jan 2006 Posts: 13
|
Posted: Fri Jan 20, 2006 9:21 pm Post subject: |
|
|
| Thank you very much. :) |
|
| Back to top |
|
 |
|