forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Where does this go wrong?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
haxx_blaster



Joined: 20 Jan 2006
Posts: 13

PostPosted: Fri Jan 20, 2006 4:26 pm    Post subject: Where does this go wrong? Reply with quote

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
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Jan 20, 2006 5:00 pm    Post subject: Reply with quote

First line should be <=
Back to top
View user's profile Send private message
haxx_blaster



Joined: 20 Jan 2006
Posts: 13

PostPosted: Fri Jan 20, 2006 9:21 pm    Post subject: Reply with quote

Thank you very much. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group