Again, thanks for the replys :) I'll try and implement it once I've figured this out. In my player.h file I have
int health;
int strength;
int agility;
Player();
Player(int strength,...
Type: Posts; User: Luminous Lizard
Again, thanks for the replys :) I'll try and implement it once I've figured this out. In my player.h file I have
int health;
int strength;
int agility;
Player();
Player(int strength,...
Thanks for the replys lads. I'll try some of the suggestions now. Does anyone have any ideas about how I could give North(south, west etc) a set value and increase/decrease it's value every time...
Thanks for replying guys. brewbuck I'll check out your suggestion tomorrow. It's 2am here and I'm tired XD but with the:
void player::goNorth()
{
if (location->toTheNorth != NULL)
...
I think it would be best to have a map and then I can assign tasks/monsters to certain areas and then when I get that done I could try and mix it up a little bit. How would you go about making a map...
Hi, I'm at the beginning stage of making a text based adventure game. But after making my player.h (which has health, name, and things like goNorth which I'm not even sure if it should be there)...
Can nobody shed any light on this?
Hi, I'm trying to make a checkers game and at the moment I have all the pieces shown on the board and you can move them around freely, but I'm having trouble thinking of how to get it to A) make the...
How would i make a loop that just gets a counter counting up (starting at a variable of 1 and add, say, 0.2 to it each loop) and then save whatever the value it has into a variable when the return...
I think it has to be at the top of the page with the information. But how would i tell the projectile to move at the angel chosen from the user?
Thats why i didn't post it all, i don't see what i could put anyway because its not a problem in my program its just something i don't know what to do.
No, ive talked to people doing similar things and they haven't used cout or cin so it can't be that. I don't see a way to do it, would it help if i posted the whole mainprog?
No text display no, thats why i thought it could use a cout function but talking to my friends and they haven't done it that way. And i have been limited to the header and CPP files i can use. We got...
Hello, how would you input code to make is so the user has a option to change the angel of which the projectile moves? Would it be in the Projectile CPP or my mainprog?
Here is my Projectile CPP:...
Iv'e done it now, it was simpler than i thought it was and took in me like 5 minutes. Now onto to the collision code. As a question, i emailed my folder to myself in a zip and now i can open it in...
OK apologies i don't really post on forums much.
My issue as it stands is not necessarily error messages, its more that i dont know where to start putting the array. I posted the code i was using...
Im stuck, i just can't get arrays to work!
Current program, i have a more in depth one that has header files etc but im just trying to get it run first then ill put it in different files.
At the moment all it does is display the background,...
Well could someone point me in the direction of an example of an array in a game.
I have done arrays before and i have to code that i think would work, and i have some of the coding for my game...
Hi im trying to make a Block breaker game, and i want 88 blocks in which to break, how do i make an array to do such a thing?