|
-
Dynamic length of line within rectangle
Hello all,
this one has stumped me beyond belief. I have a rectangle, and within that rectangle I have placed a line. The line starts out in the center of the rectangle. So, it's a sprite(rectangle) that has another sprite(the line) in it. When I press a button, the line starts to rotate from the center point. What I want to do is have the line follow the inside border of the rectangle, the line adjusting its length dynamically. It's like the hands of a clock, only the clock is rectangular and the hands touch the inside of it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|