Loops for game: help?

Discussion in 'MFC' started by momrocker, Sep 7, 2010.

  1. momrocker

    momrocker New Member

    Sep 7, 2010
    Likes Received:
    Trophy Points:
    Hello, today I was working on a basic text 'game' (if you can call it a game at this point) to practice some basic techniques with loops, strings, arrays, etc., and what I would like to happen is that every time the user puts in input, it activates something (like 'move north' moves the player north (duh) or 'take note' picks up a note off the ground and prints the text to the console). I know that there should be some way to do this with loops, but at my skill level I'm not exactly a pro with loops, so if possible could somebody tell me which loop would be best for my explained situation and why? Thanks in advance guys.

    (PS I tried a 'while' loop and it didn't exactly work out too well, will post code with the while loop if someone asks to see it)

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice