How to create random movement of lines within a box?

We want to have four lines rotating and moving randomly within a box. Right now our lines are moving randomly with the random function in the move behavior, and as they move the lines continually rotate via the rotate behavior. The problem is, the lines move out of the screen very quickly. If possible, we want the ends of the line to stick to the side of the screen/box and have the length of the line shift according to the random movement and rotation along the screen/box. How would we do this?

Comments

Sign In or Register to comment.