As Lukas wrote:
Quote:
Also, it's better to not you hide and show panels like you do:
right_pan.flags = 0; // hide the old paddle
right_panbig.flags = SHOW | OVERLAY; // show the bigger paddle

Because setting the flags variable to 0 turns ALL flags off. This is bad if you want to keep other flags. Better do it like this:
right_pan.flags &= ~SHOW; // hide the old paddle
right_panbig.flags |= SHOW; // show the bigger paddle


You should change your code from this:
Code:
paddlesmall_pan.flags = SHOW;


to this:
Code:
paddlesmall_pan.flags |= SHOW;



Try to think over your code. You set the SHOW attribute for entities, but where do you hide them?
I advise to you insert this code:
Code:
paddlebig_pan.flags &= ~SHOW;
speedball_pan.flags &= ~SHOW;
paddlesmall_pan.flags &= ~SHOW;
doubleball_pan.flags &= ~SHOW;


In front of:
Code:
itemhilfe = integer(random(5)+1); // itemhilfe becomes something between 1 and 6



So all your entities will be invisible, but when the condition is true one (and only one) will be showed.