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

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




PostPosted: Tue May 16, 2006 5:27 pm   Post subject: Help On My RPG

I'm just wondering if I am doing everything right so far in making an RPG game. Controls are abit messy, I'll give a quick outline here:

When in the outside world, ESC to enter the menu, then BACKSPACE to exit that menu. I tried having ESC to exit that menu, but it glitches.

When in a battle, ESC for an alternate escape method, and ENTER to attack, item, etc.

If there's any help please post some.
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Tue May 16, 2006 5:45 pm   Post subject: (No subject)

The best advice I can offer is to learn Object Oriented Programming. It's a very powerful concept that will make a large project such as an RPG a lot easier to make and more logical to code.

If not that, then you should use parameters more. You've got procedures like "Attack". Attack what? Who is attacking? You are assuming that your hero is the one attacking, but why should the Attack procedure care who is attacking? So long as the thing (I want to say object, here) that is doing the attacking has the appropriate capabilities (I want to say methods, here), then the Attack procedure should be okay with it.
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: