Problem fixed.
My GetVelocity_x() function was declared as a POINT instead of an int, so the operators were not working.
Thanks for your help.
Type: Posts; User: ajdspud
Problem fixed.
My GetVelocity_x() function was declared as a POINT instead of an int, so the operators were not working.
Thanks for your help.
It is an array of pointers to Bitmap images i believe. Besides every other time I access a member function with g_pAsteriodSprite[i] it used the -> its just that part of code it doesnt like.
As i...
Im currently debugging code for a game I'm writting and there is several errors I can't understand.
I would post this is the game programming forum, but the errors seems to be centered around...
I'm wondering if anyone could give advice on the next book for me to get. I'm particularly interested in learning about 3D games programming.
So far I've read "Teach yourself C++" by Jesse Liberty...
Many thanks, You were infact right,
g_pGame = new GameEngine(hInstance, TEXT("UFO"),
TEXT("UFO"), NULL, NULL, 600, 600);
The two null values are meant to be identifiers to icon...
I've changed it as following however it is still crashing, I tried to follow logically what you were saying, but I still may have missed something:
Ive also included the header file incase the...
I'm not sure if this is exactly the right forum for this, so I apologise if it isn't.
Im writing game code for a basic slot machine. To test fuctionality I've written a basic prototype. When ever...
Damn it! 4th stupid mistake in 2 weeks, when will I learn
Ive been working on this program that is meant to battle to Fighters. The Fighters are created from the FIGHTER class and fed into an array. This is array is then fed into FightFunction, which does...
Thank you all.
After fixing that successfully, and another 3 problems after that I've finally got all working as it should be. Thanks a lot for everyone thats helped
Wraithan: No, thats part of the code from the source code for one of the complete games. I can't see why the book has suppliedcode that won't even compile.
Ancient Dragon: I added that code and...
Ok, thanks for that. Having searched my comp for it I've just discovered that It was in lib file all along, I just didn't see it.
Any I've now got a new problem. One of the examples uses two...
I'm learning windows game programming from a book. Anyway for one of the game examples, it wants me to change the linker setting to include: msimg32.lib
It tells me to look in the lib folder...
Well now I just feel stupid
random1 = (rand() % 3) + 1;
random2 = (rand() % 10) + 1;
How did I miss that????????
Hey
I'm trying to create a function that controls a battle between two characters. For testing purposes each character is given 200HP and an armour and weapon level (at the moment defined by the...
I've think I've made all the changes Salem listed as so, but I'm still getting the following errors. I guess I'm still not understanding this properly. Any suggestions?
"test.cpp": W8070 Function...
Im in the process of creating a bigger program which will allow two players to battle each other, but this will require me passing an array of pointers to objects of the FIGHTER class into a...
Part of the program creates objects of the class HUMAN and creates pointers to these objects. These pointers are the stored in an array. Anyway the user inputs the number of family members it wants...
Yep, works perfectly now. Cheers for the help and advice
Thanks for the help everyone, ill re-write bits of the program with the advice you have given me and see what helps. Ive looked throught the book I'm using and it doesnt actually mention else if...
I am very new to C++, Ive only been learning it for the last week. Anyway Ive written this simple program that should create a number guessing game with player 1 and 2. The use can input the number...