My remarks at the top of the code explain where I'm at and what my main problem is. Sleep was not part of my original design but for the game to be more playable (less boring) I would like to implement it. I can't see a way round this without a major redesign to implement it and would welcome suggestions on how I could do this. (My thoughts to do this was to plus 4 to both the timer and counter variable's).
Apologies for all my code in main, I was trying to get it all working before making it a function (to stop all my variables being global variables) but I haven't quite sussed pass by reference to do that yet (but I will). Temp flag I know I need to loose and use bool instead (at least I think I can)? Not sure what else is wrong but I'm sure there probably is somethink?
This part of the game would run in the background and be called when needed from my movement routine.
If we could keep the flames to a minimum please, I know my coding is probably messy and annoying but, I'm out here and I'm trying.
Off topic, why did you start making your rpg from day/night cycle? I assume it will have an important role in it, but still, something like movement seeks like a more core feature..
Thanks hamsterman for all your advice (and the articles), point taken on both of them! I've actually got the movement class sorted and working with this as a background function to be called (Vamps in daylight stuff), Lol. Still would like to learn C++ though, so I'll be sticking with it. I was just using the game as a way to implement the stuff I have learned and to stretch my knowledge of programming further. In over my head again but how else do you learn.
Leppie