Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Betrayer_of_Code

Help Please(different from the one below)

This topic is 5631 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When i run the code for my text based game, you have to move before your see yourself OR the map. I dont nget why, the source is here http://cppnoob.tipod.com/TextRPGv1.zip as is the game. If anyone can tell my how i can change the code to make it different it would be greatly appreciated Homepage Luck is a Horse to ride like any other...Luckily im not a gambler, I dont know how to ride. For any total noob out there Here is a like to my tutorials, thry them out

Share this post


Link to post
Share on other sites
Advertisement
What''s there to be confused about? Your display code is later in the Room() function than the input code, so naturally it will ask the player for input before drawing anything. BTW, you''re using goto to "simulate" loops in almost all of your functions. That''s a really bad habit, and that may even be what confused you about the sequence of your code.

Share this post


Link to post
Share on other sites
so if i just flip the code so the dispaly is first it will work?


Homepage
Luck is a Horse to ride like any other...Luckily im not a gambler, I dont know how to ride.
For any total noob out there Here is a like to my tutorials, thry them out

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!