ok, here it goes. if i am using classes, say class game1, when I assign it to say "game1 level"may I call that anywhere in the program? also to call a function, do I just type say "level.character"?
ok, here it goes. if i am using classes, say class game1, when I assign it to say "game1 level"may I call that anywhere in the program? also to call a function, do I just type say "level.character"?
If you make it global in the same module - Yes
If you make it global in another module - Yes, if you use the extern keyword
If you make it local - Yes, if you pass a pointer to it
In your second question, you forgot the parantheses:
level.character();
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.