|
draw_sprite fonction |
solveigus
Member #20,167
May 2021
|
Hi everyone! I have to drag a BITMAP for a project, and then drop it. I'm using the sprite function, but I think my conditions are wrong, because I can only drag it within the coordinates I put to click on it.
|
amarillion
Member #940
January 2001
|
Hey, I don't fully understand your question. Can you explain your question a bit more please? -- |
Dizzy Egg
Member #10,824
March 2009
|
You need more conditions; what you are saying if is I first click on on my image, then put my image where my mouse_x and mouse_y is; what you need to do is more conditions: if I click mouse when the cursor is on my image (x > 20 x < 73 y > 15 y < 95) The best thing you could do is share your full code, then one of us can edit it to show you how it works. All you are doing at the moment is one check, which only works within you original mouse position. Just post your code, it's easier!
---------------------------------------------------- |
|