You are viewing our Forum Archives. To view or take place in current topics click here.
Need Help With Code
Posted:

Need Help With CodePosted:

-nomore-
  • Resident Elite
Status: Offline
Joined: Feb 19, 201113Year Member
Posts: 229
Reputation Power: 9
Status: Offline
Joined: Feb 19, 201113Year Member
Posts: 229
Reputation Power: 9
Code
ProjectB()
{
i = 0;
self.Box1 = self createRectangle("BOTTOM", "BOTTOM", 0, i, 50, 50,(0,0,1),"white",-1000,0);
if( i == 700 )
{
i = 700;
}
else
{
wait 1.0;
i = i + 100;
}
}


I Want (i) on
( i stands for the x axis )
self.Box1 = self createRectangle("BOTTOM", "BOTTOM", 0, i, 50, 50,(0,0,1),"white",-1000,0);

To Move each 1.0 second till it reaches 700. so this code does that but, the box does not move it just stays at 0
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.