What dangee said to clear the screen is the concept method that most games do. How you actually clear the screen depends on the API, libraries, platform you are programming on.
I did not intend to make fun of you.
I spent a good amount of time yesterday trying to think
of a way to guide you, without becoming your
personal debugging djinni.
I couldnt find a way, and to recognize and accept
this personal phail made me sad.
The best I can suggest now is that
you find , and study some existing source code
What dangee said to clear the screen is the concept method that most games do. How you actually clear the screen depends on the API, libraries, platform you are programming on.
No offense but do you really think you should be starting on C when you have no knowledge what so ever on the language. If you wish to start learning C I reckon you should get a book from your local library and study it
PSN ID: splodger15
ok i was reading a C++ book because i wanted to learn about it, and i did those tutoials on psp-programming. I also know actionscript, so i am only half noob right now
i will clear up what exactly i am doing. I am using psp dev i have the libaries that the libinstaller for pspdev installed. i was following this tutorial
http://www.psp-programming.com/tutorials/c/lesson04.htm
i finished it and the tutorials following it, i have added some things to the code that will make it move, i try reblitting the images whenever i push one of the arrows, that works, but then the image that was there before it is still showing, i want to learn how to remove this or if i should do something else
i have atached the code files i thank if you deicde to take a look or help me.
Clarification: You are using the graphics and framebuffer code from PSP-programming tutorials.
Look at the header file of graphics.h. It shows all the functions you can use from the graphics.c source. Look for a function that clears the screen.
ok i found one but im not sure how to use
extern void clearImage(Color color, Image* image);
i defined a color as "Black"(tell if thats not was i was supoosed to do)
I typed my code like this
clearImage(Black, Black, Image* ourImage);
here are the errors i get
main.c<63> : error: syntax error berfore 'Image'
SpooForBrains i knew that, but what is the difference
ok i tried dangees method again, and this time, IT WORKED!!!! thank you all very much for helping me solve my problem!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks