storing variables
i dont know if thats the right term but, what i want to do in my console app is store an action, so if a character picks up somthing, then later on he needs to use it, it will bring up the varibal saying if he has it or not like hasgun = 0 or hasgun = 1
also whats the code for clearing the screen but not ending the program?
google!
either make that variable static or global... will retain value throughout program that way
RanBlade
"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...Passion is where great games come from, if you dont live and breathe games you shouldn''t be in the games industry." - Dave Pottinger, Ensemble Studios
[GameDev][C++ Page][Game Tutorials][FreeBSD][HawkNL(Hawk Network Library)][NeHe Productions][Gamedev book''s]
[Virtually Online-Books][Mage Tower Ent-My Site]
either make that variable static or global... will retain value throughout program that way
RanBlade
"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...Passion is where great games come from, if you dont live and breathe games you shouldn''t be in the games industry." - Dave Pottinger, Ensemble Studios
[GameDev][C++ Page][Game Tutorials][FreeBSD][HawkNL(Hawk Network Library)][NeHe Productions][Gamedev book''s]
[Virtually Online-Books][Mage Tower Ent-My Site]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement