well, u can have several types of menu, image menus, object menus, alot of programmers these days use objects menus.
whats an object menu?:-
it's a menu containing object items. as u know, u can do anything with objects.
here's an example of a menu made out of objects:-
1. lets say u want to make a menu of 4 items:
sync on: autocam off
for i=1 to 4
make object plain i,100,25
next i
this creats 4 PLAIN objects.
2. now to postision ur items on the screen and give them colors:
position object 1,0,100,200 :position object 2,0,0,200
color object 1,rgb(255,255,0) :color object 2,rgb(255,255,0)
3. here's the loop for which DB will detect ur position of ur mouse, and when the mouse is over an item, it will change its color:
do
if mousex()>(mousex value) and mousey()>(mousey value) and mousex()<(mousex value) and mousey()<(mousey value) then color object 1,rgb(255,0,0)
else
if mousex()>(mousex value object 2) and mousey()>(mousey value object 2) and mousex()<(mousex value object 2) and mousey()<(mousey value object 2) then color object 1,rgb(255,0,0)
sync :loop
just replace the (mouse value objects) with the position of where ur mouse is over an item.
THAT'S IT! u made an object menu, the same thing for doing an image menu, just load ur images and paste them where u want them to be, and put the values of ur mouseX and mouseY.
dont forget that by object menus u can also make cool animations. just read the tutorials on the DarkBASIC.
cheers!
‘Those who ignore the lessons of the past are doomed to repeat them’ (Napoleon)