okay you know in somegames theres the
loading object1
loading object2
loading object3
etc,etc...
how do you do that?
i want to know how because i think it has a flair of professionalism to your games
okay you know in somegames theres the
loading object1
loading object2
loading object3
etc,etc...
how do you do that?
i want to know how because i think it has a flair of professionalism to your games
Print that message when you start loading that object??
Trinity: "Neo... nobody has ever done this before."
Neo: "That's why it's going to work."
c9915ec6c1f3b876ddf38514adbb94f0
okay i take it by your response i didnt explain indepth enouph
what im saying is something like
a loading bar but instead of it actually being a bar its a list of whats being loaded
How to do that is entirely dependent on what tools/APIs you use to build your GUI. Standard C++ doesn't have any GUI functionality at all.
You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.
If you study oop, you can call a constructor and destructor explicitly.
eg:
You could use this format to call the functions as they are loaded.Code:class Myclass { public: Myclass(); ~Myclass(); }; Myclass::Myclass() { // this will show when a new object is created std::cout << "Object created...\n"; } Myclass::~Myclass() { // and this when it is destroyed std::cout << "Object destroyed...\n"; } int main ( void ) { Myclass *mc = new Myclass; delete mc; mc = NULL; std::cin.get(); return 0; }
It is just an idea, in general, most games call the files / functions like you said
via a laod bar, or it will say "loading level 1" behind the scrences, the data is
loaded in ( the program objects are created ) and all you see is the end product.
thanks thats what i wanted
It is? Wow.
Because that's also what jmd15 said in the first place.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
im a visual guy i need to see the code to understand it well(im trying so please dont go on my case about it) but if ive seen code that ive read about before its alot easier for me to edit and use
Well, fair enough. I can empathise with you about being a visual guy! But couldn't you have just cout-ed "loading" or whatever at the start of the program (wouldn't technically be accurate), but either way
I've been reading up theories about Lost ...Code:#include <iostream> int main( void ) { std::cout<< "Loading. Please be patient."; Sleep( 4815162342 ); std::cout<< "Load Successful. Welcome to Hatch Island! " return 0; }
lol i suppoaw i could but that would be a little decieving haha