Posted: 28th Jun 2007 10:30
Hi guys.I`m new here and i need some help.I want to ask you how can i make dialogs and windows for my game.Game menus and buttons are not that hard really but for other stuff windows and dialogs i`m freshman.I try to make a dialog box from sprite image.I want to move it on screen and when i use for example \"sprite SpriteNum,mousex(),mousey(),SpriteNum\".When i click on sprite with mouse it jumps instantly from the place where it is to place where my mouse is.This is not the efeect i`m looking for.I try some different stuff but they don`t work properly.As i say i`m still new here.
I really don`t want someone to write the code for me.I`m looking for advice becose i`m stuck with those stuff.Can i solve my problem with DBP only?

I`m sorry for my english.I`m not eglish speaking,and my grammar isn`t my true power.
Posted: 28th Jun 2007 11:50
You could apply some simple math first,
Get the difference between the sprite position and the mouse position and use that to keep the offset position the same.