Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / One very difficult Problem.

Author
Message
Takis76
19
Years of Service
User Offline
Joined: 9th Apr 2005
Location: Greece
Posted: 5th Jun 2006 23:44
hi ,

I try to solve one very difficult problem.

I am trying to make a box for example one image

and then I drag this image with mouse.

Like moving one window.


When I click on the image or on my box and I want to make it to
move like a window moving , but if I put mousex() and mousey()
the same value as the image x and y , my image move at the cursor
position of the image , I don't want to move the image in the
cursor position , I want this image moved at the click point of
my mouse. (spot)

I don't know how to describe it?

I have a picture.

Thank you very much.

If you dont understand what I say , I will post my game progress so far to see what I want to do. Or I post one small code.

Attachments

Login to view attachments
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 6th Jun 2006 00:58
Like this? Simply save the previous mouse coordinates and move box by the difference.



Boo!
Takis76
19
Years of Service
User Offline
Joined: 9th Apr 2005
Location: Greece
Posted: 6th Jun 2006 02:06
Thank you very very much millions of thanx.


You helped me very very very much.


With your rutine , I solved a big part of my game , because all of
my floating windows , are using your greate rutine.

Soon I will post the next version.


Thank you again very very much.

This game will be perfect.

Thank you!!!!!!!!

Login to post a reply

Server time is: 2024-11-27 17:47:32
Your offset time is: 2024-11-27 17:47:32