I've been making a vector drawing tool that lets users create basic shapes
such as rectangles, lines and circles. I've got a sprite that acts as a
drawing board and traps mouseDown events. It then creates a new vector cast
member and places it at the mouseLoc. Then, for as long as the mouse button
is pressed, dragging the mouse around changes the size of the shape.
Releasing the mouse button completes the drawing action. So it's pretty
much like conventional drawing tools.
All resizing is done by changing the position of the vertices in the shape.
The rect of the sprite is not modified at all.
On exitFrame I check the mouseLoc for changes from the previous loc and
accordingly move the objects vertices. But when I move the mouse really
fast, the vertices tend to move away from the cursor. Usually, the vertices
pick up a greater distance than the mouse. Although not a very serious bug
at present, I dont wanna ship something like that.
I've tried pumping up the frame rate to see if it makes a difference, but
there's been no luck so far. Does anyone have any other suggestions that
might solve this?
Regards,
Pranav
-----------------------------------------------------------
A bus station is where a bus stops.
A train station is where a train stops.
On my desk, I have a work station......
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]