ffc script dvdbounce{
//Remember the episode "Launch Party" from the TV show The Office?
//At the beginning, everyone was in the meeting room "listening"
//to Michael's rant on qurater reports when they "reply" with a
//groan? They were watching the bouncing box on the screen, hoping
//it would hit one of the corners. This is where the script's idea
//came from, except with "plus" features.
void run(){
while(true){
int x; int y;
int cnt;
this->X == x; this->Y == y;
if(x == 0){
this->Vx == 1;
}
if(x == 256){
this->Vx == -1;
}
if(y == 0){
this->Vy == 1;
}
if(y == 168){
this->Vy == -1;
}
if(((x == 0) && (y == 0)) || ((x == 256) && (y == 0)) || ((x == 0) && (y == 168)) || ((x == 256) && (y == 168))){
cnt + 1;
}
Waitframes(1);
}
}
}
most frustrating attempt to code a simple function ever. It's the if statements; the cnt thing isn't the cause of the problem. I just can't understand why the FFC's x and y positions aren't recognized, and thus it goes off screen...
Oh, and try to keep the code somewhat the same...