sorted
next to %u, I missed the score....
so sprintf(displayscore,"Score %u", score);
little things lol
Type: Posts; User: Tezelia
sorted
next to %u, I missed the score....
so sprintf(displayscore,"Score %u", score);
little things lol
Thank you I will try and look online for tutorials, etc
Ok so I used one of my old codes which displays the integer 0 next to "score" at the beginning of the program
However in my current program every time I run the program it displays 'score' but...
In simple terms in my code if I press z, t = t + 1 which = 1
and if t==1 then it plays the animation
if (tt == 1)
ballz = ballz ++;
glutPostRedisplay();
...
Anybody?
Here I tried animating the ball but its not working
void TimerFunction(int value)
{
glClear (GL_COLOR_BUFFER_BIT);
//the angle by which the star is rotated
if (tt ==...
How DO I animate so the ball keeps on moving and how do i scale per keyboard input?
1) Below is a code which moves the ball towards the target once the z key is pressed incrementing it once per...
Yes thank you so much to everybody
but now i have another problem well i dont know how to move or animate the ball
void keyPressed (unsigned char key, int x, int y) {
if (key ==...
OMG THANK YOU SO MUCH IT WORKS NOW IT MVOES LEFT RIGHT AS WELL NOT I NEED TO DO ONE FOR Z AXIS IT MOVES BUT THE SHAPE OF THE BALL SHIFTS A BIT BUT I WILLT RY AND CORRECT THAT THANK YOU SO MUCH!!!!!...
Anybody?
It's been a week and I still haven't solved this problem i absolutely hate programming and opengl i just want to get this assignment over and done with, i've had enough.
i declared...
Any ideas maybe I'm repeating the code in this bit
is this bit right or wrong?
void RenderScene(void)
{
// Clear the window with current clearing colour
glClear(GL_COLOR_BUFFER_BIT |...
still not working ):
I just don't understand why, what am I doing wrong I included everything I was supposed to
thanks for helping me anyway
hey
I tried putting
glTranslatef( Ballx, Bally, 50.0);
everywhere I can but it's not working still where am I actually supposed to put it ):
This is what I tried doing so far
Basically I placed my textures and everything on the window and now I want my sphere or the ball to move left or right, I have the special key code, etc but for some reason still my ball isn't moving...
Ok thank you, i'll try and how do I display text such as "score" + score.
Isn't there an easy way?
thanks
Ok I got the rotation kind of working but now I need my car to detect the box and when it does the box should change colors....
The thing is I just don't know why they make it so hard
why not...
thank you it works now but when it rotates i kind of moves a bit but it's better than nothing I guess
I'm new to opengl and studying it for one of my modules and for one of our assignments we have to make a car move through a maze and reach the top
The thing is my car starts facing a horizontal...