HI
I want two people DR1 and DR2 chat. So moving heads towards each other and back to forward. Sometimes randomly they should also look down or up.
So this is where I'm stuck. Other eyes might find a solution for me? There might even be a simpler, completely different approach, well below
I got lost.
Many thanks in advance
if( SDL_GetTicks() - ct > 200 )
{
ct = SDL_GetTicks();
if (rand()%50 == 2 || nun == 1){
nun = 1;
if (ctside <= 0 && still == 0){
DR1value += 0.1;
}else{
if (ctside >= 1 && still == 0){
DR1value -= 0.1;
}
}
if (ctdown == 0 && nun1 == 1){
DR2value += 0.1;
still = 1;
}else{
if (ctdown >= 1){
DR2value -= 0.1;
still = 0;
}
}
}
}
if(DR1value >= 1){
ctside = 1;
nun = 0;
}
if(DR1value <= 0.1){
ctside = 0;
nun1 = rand()%5;
}
if(DR2value >= 1){
ctdown = 1;
nun1 = 0;
}
if(DR2value <= 0.1){
ctdown = 0;
//nun1 = 0;
}