![]() |
Blitted Objects, Clickable? - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Blitted Objects, Clickable? (/showthread.php?tid=472) |
Blitted Objects, Clickable? - Tony - 13-12-2006 I've learned alot since I've been here (Thanks to those nice members) now I'm asking how would you make blitted objects clickable. Which I'm positive is very possible. Actually, If I found out myself I have a few tutorials to release for beginners. :: Pando - Matt - 13-12-2006 Look at how the players are clickable. I can't remember what sub it is, but it's not hard to find. - Dragoons Master - 13-12-2006 Well, you can create an array of buttons w/ the buttons X1,Y1;X2,Y2 information, that way you can make your buttons sizeable and it will be pretty easy. The object you click(the screen is actualy an image box named picScreen. This is where everything happens: Code: Private Sub picScreen_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) Code: Sub PlayerSearch(Button As Integer, Shift As Integer, x As Single, y As Single) Code: ' :: Search packet :: |