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

Username:   Password: 
 RegisterRegister   
 RPG Game Stats
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
JB




PostPosted: Wed Feb 04, 2009 11:24 am   Post subject: RPG Game Stats

When the game starts and you hit enter thew stats of your character are supposed to pop up but they don't here is my game. If anybody copuld get that to work that would be good.


Cutthroat organized version.t
 Description:

Download
 Filename:  Cutthroat organized version.t
 Filesize:  6.73 KB
 Downloaded:  59 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Zren




PostPosted: Wed Feb 04, 2009 1:27 pm   Post subject: Re: RPG Game Stats

This is because you have the players input and the menu in different loops. In the first loop, you don't ask if ENTER has been pressed. The reason why it won't go to the seond loop is because the previous loop has no exit parameters.

The easiest way to fix is to just make one big loop.

Tips:
Look into View.Update and double buffering to prevent flickering.
The input for gender and race is case sensitive, so try converting the users input to lowercase and have the if statement condition in lowercase as well.
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: