he he sorry..
sync on
sync rate 30
autocam off
menu:
`menu world
make matrix 1,10000,10000,20,20
` camera
position camera 5000,200,4500
` buttons
make object cube 1,100
make object cube 2,100
make object cube 3,100
make object cube 4,100
scale object 1,100,50,10
scale object 2,100,50,10
scale object 3,100,50,10
scale object 4,100,50,10
position object 1,5000,30,5000
position object 2,5000,90,5000
position object 3,5000,150,5000
position object 4,5000,220,5000
rotate object 1,0,0,10
rotate object 2,0,20,0
rotate object 3,20,0,10
rotate object 4,10,10,10
do
buttonselected=0
if makebutton(5000,30,"NEW GAME")>0 then buttonselected = 1
if buttonselected =1
goto game
endif
sync
loop
function makebutton(x,y,desc$)
buttonpressed=0
ink rgb(55,55,0),0
myx=mousex() : myy=mousey()
if myx>x-100 and myx<x+100
if myy>y-32 and myy<y+32
buttonpressed=1
endif
endif
if buttonpressed=1 then ink rgb(255,0,0),0
set text size 18 : center text x,y-8,desc$
if mouseclick()=0 then buttonpressed=0
endfunction buttonpressed
game:
make matrix 2,10000,10000,25,25
do
if controlkey()=1
goto menu
endif
sync
loop
there.. You see my problem is.. i have a buttonpressed function for a 2d menu.. but I need one for a 3d menu..
okay?