Ok, how would I make it so, where ever you click on the "Title" image, and left click is down. And you move your mouse and the box moves with it.
So I'm thinking, you'd need to know your MouseX and MouseY, then make something analyse, if your mosue is on the image. Then check if your left click is down. Then compare your MouseX and MouseY with your box_x and box_y. So like if your mouse moves while doing the two things it notes a +number or -number and applies it to the box_x and box_y.
Well thats just my theorie tho lol..
But how would i do that?
Thanks for the help.
So I'm thinking, you'd need to know your MouseX and MouseY, then make something analyse, if your mosue is on the image. Then check if your left click is down. Then compare your MouseX and MouseY with your box_x and box_y. So like if your mouse moves while doing the two things it notes a +number or -number and applies it to the box_x and box_y.
Well thats just my theorie tho lol..
But how would i do that?
Thanks for the help.
Graphics 640,480,32,2 SetBuffer BackBuffer() ClsColor(190,190,190):Cls:Flip ; VARIABLES Global exitGame = False Global title = LoadImage("gfx/title.jpg") Global content = LoadImage("gfx/content.jpg") Global box_x, box_y Repeat ; START { Cls box_x=20 box_y=20 DrawImage title, box_x, box_y DrawImage content, box_x, box_y+18 Flip ; EXIT GAME If KeyDown(1) exitGame=True EndIf ; END } Until (exitGame = True) End ; FUNCTIONS Function saveGame() End Function