Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 One Value Increasing..Other Not..
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Hack.saw




PostPosted: Thu Dec 21, 2006 5:43 pm   Post subject: One Value Increasing..Other Not..

Sorry not much time to explain question is in my commenting but basically I have a counter for how far an enemy can move that is supposed to increase everytime he moves 1 space but it dosnt seem to be working right now.. pls DL program if oyu want to help.. TTYL off to work Sad


GameIdea.t
 Description:

Download
 Filename:  GameIdea.t
 Filesize:  4.34 KB
 Downloaded:  88 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Hack.saw




PostPosted: Fri Dec 22, 2006 1:52 pm   Post subject: (No subject)

Ok, got a second now to explain. My code :
code:
if combat = false and EnemyXRight > 0 and EnemyX < 613 then
            EnemyX += 1
            EnemyXRight += 1
        end if


EnemyX is supposed to move him once then EnemyXRight adds a point to say he move right once. Theoratically It sould move him one then give a point and kep doing this until EnemyXRight > 30 where it resets to zero and chooses a new direction. The first time he runs it does add a point but then dosn't again ><.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: