i knew it would be something simple that i had done wrong!
thanks! :)
Type: Posts; User: werdy666
i knew it would be something simple that i had done wrong!
thanks! :)
Hi,
I have been playing around with SDL recently and also trying to learn more about classes and pointers too. I have a problem with code I have implented from this site...
Hi,
I am having trouble where to begin reading in my text file my little program I created.
below is the text file i want to read into a struct in my program.
I just want some help on parsing...
i'm using a simple switch statement to get user input. from 1 to 5.
what if they enter a letter, whilst my cin is expecting an int. is there a way to catch that before it causes problems with my...
i have made a reasonable attempt at my own collision detection routine for a tile game. However i have run into a snag. I created a tile that reduces the player's speed by half, however it does not...
yeah all it is is to determine which texture to use in which spot. So for example if its 0 its black, and if its 1 its blue etc etc
actually in my hex editor i see alot of 00's and 01's! :)
hi,
I am trying to make a small tile game with opengl but am having problems.
If i move the player a full tile at a time i can get it working perfectly. its when i try to implement smooth...
hi,
i have been having major problems trying to render my little map to my screen using opengl. it appears to read in ok but i am no expert at loading binary files. it renders something completely...
but surely it is possible somehow??? i remember my old Amiga 500 used to be able to record your mouse movements and replay them perfectly. Any tips????
Thanks for your reply!
hi,
i want to make a little program that would record my mouse movements precisely. at the moment i am using WM_MOUSEMOVE message, but it seems to skip quite alot of pixels. i would like to at...
i'm trying to implement time based movement to make my game run at the same speed on all systems. however i can't seem to get it right. Could someone have a quick look through my code and tell me...
The array is square.:D
lets say i have an array like this.....
array[4][4]
and this is the data in the array
array[0] { 1,1,1,1}
array[1] { 2,2,2,2}
array[2] { 3,3,3,3}
array[3] { 4,4,4,4}
Hi,
I am trying to make a basic tile scrolling program but am having problems implementing the culling of tiles which are not draw on the screen.
At the moment i have smooth movement to the...
hi,
i am loading in a binary file into a 2d vector. i have it working but don't understand how it works! lol
here is the code....
int widthb[1];
int heightb[1];
ok i appear to have solved my problem but i still don't know why it wasn't working.
cout << int(words[5].length()) << endl;
cout << "lets try to jumble a word at random" << endl;
cout <<...
this is a function i am trying to write so that i can set up a vector for a flag operation to make sure i don't process the same letter of a string twice. i do understand variables(well i thought i...
Thankyou swoopy! that works perfect!
:cool: :D
Werdy666
yeah the do loop doesn't work, i didn't think it would.
Could you please show me a quick example of how i was use cin.ignore() to make sure that if letters are typed that it wouldn't go through...
this code works ok until i type say a letter. like if i typed 789 it works fine. if i type say the letter a or a word or anything with a char in it, it then tells me that the monster doesn't exist,...
I am just trying out some basic c++ stuff and i was hoping someone could tell me some better ways to put my code together. I know its messy but if anyone could help make it cleaner and faster, and...
yeah i understand that WM_SIZE is only called when you try to resize the window and WM_Create is called when the window is created....
here is my message loop...
switch(msg)
{...
in the WndProc where u check for all the different messages windows sends your program, why is it that i have made a window that cannot be resized, yet i have code that looks like this.....
...
could someone suggest a couple of very basic programs that i could try, to help learn windows programming? The tutorials are good and all, but they concentrate on one specific thing most of the time....