Skip to main content
GameDev.net gamedev.net
🔒 Locked

Need help a simple equation...

Started by Ninja_Monkee Dec 9, 2002 at 9:59 PM 3 replies 150+ views
Original Post
Ninja_Monkee
Ninja_Monkee
Ok, my brain is fried because I''ve been working on this program for 4 days straight now. Can someone help me with a simple equation? I just need to move the points on a polygon with the mouse cursor. I tried something like: shape[0].X += (mousePoint.x - tempMousePoint.x); shape[0].Y += (mousePoint.y - tempMousePoint.y); Where mousePoint is the current mouse point and tempMousePoint was the initial mouse point, but it doesn''t work. The shape just flies across the screen? Any help? I know it''s simple, I''m just extremely fried. Thanks! ~Ninja Monkee~ "Time flies when my shape flies too."
Ninja_Monkee
Ninja_Monkee
That didn''t work, but thank you for the response.

~Ninja Monkee~
"I think I bent my Wookie..."
Melraidin
Melraidin
You''re remembering to save the new mouse coordinates into tempMousePoint, riiiight?
Ninja_Monkee
Ninja_Monkee
hehe, that was the problem. Fortunately I figured it out before your post so I don''t feel so dumb. But I really really really appreciate all the help. Thanks!

~Ninja Monkee~
"I''m not as dumb as I think you look."

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.