Thanks for the Information but i have already have a look at them and these things are not there.,but i gained all of knowledge from there.
Can you please suggest some other good SDL programming sites esp related having motion and collision examples.
I am stuck again and need you help on two issues,if some one know any thing about these two things please reply
1)I want to create a negative of an image if say the user enter key 'N'.Now i know the logic of creating an negative ie find RGB value of each pixel on the screen,then subtract the indiviual RGB value from 255 to get the new value.However i do not know how can we take RGB value from each pixel and then write them back on screen.Have anyone tried something like this or do someone have a better idea.Please some reference code if some one has tried anything like this.
2)I am trying to create a camera in SDL by using SDL_rect and then positioning it in the screen by giving some offsets,but what i really want to achieve is that i have created an animation and i would like my camera to move along with it.I mean if my animation is moving to the right ,it should feel like camera is following him.But i am unable to achieve this result.Have anyone tried to emulate a camera in SDL before and if yes assist me.
Thanks for the information and more importantly correcting me about how to post effectively on Game dev,Well it was my first post and i think one mistake is fine..But will take care next time.
Using khbit have solve my problem.Thanks a lot...Cheers
@ ALL Can i ask one more doubt regarding this program here only or should i start a new thread.
Actually i also want to include a timer in my program..to keep a track of how many correct random alphabets the user enters in say 60 secs..
I can you a variable and assign it value 60.and then decrease it by 1,but how to make sure that after exactly one sec it would get displayed in the screen.
i.e i need to display the counter exactly after 1 sec and this should not affect my other program functioanality .Is this possible, there must be a solution.Guys please provide some pointers/suggestions regarding the same.