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.

Dark GDK / Drag and Drop on a sprite

Author
Message
dimy93
15
Years of Service
User Offline
Joined: 10th Jul 2009
Location:
Posted: 10th Jul 2009 13:50
How can I do a drag and drop effect on a sprite with the gdk?I assume that can be done with a set of funcions:
1.Funcion for mouse button that has been clicked -I already found one
2.Funcion of changing the possion of the sprite-I thought I have found it but apparently I haven't.
3.Funcion that founds where the mouse is in the moment
4.Funcion that returns the change into the place of the mouse on the screen-I have found this one too.
So please tell me which are 2nd and 3rd funcion or other funcion that makes it all in one.
Sorry for my bad English and thax for the help in advance.
dimy93
15
Years of Service
User Offline
Joined: 10th Jul 2009
Location:
Posted: 10th Jul 2009 16:38
I think I've done it my self.Here is the code if s.o needs it
Krisacz
15
Years of Service
User Offline
Joined: 3rd Mar 2009
Location: UK, Manchester
Posted: 10th Jul 2009 17:44 Edited at: 10th Jul 2009 17:45
Try that function, I'm not sure if it's working, I didn't have chance to test it but general idea I thing is ok.

Login to post a reply

Server time is: 2024-11-25 06:38:54
Your offset time is: 2024-11-25 06:38:54