sorry for double posting...
i tried something like this, but it doesn't work correctly.
Rem Project: Testgamemaker
Rem Created: Monday, January 26, 2009
Rem ***** Main Source File *****
Rem ***** Included Source File *****
sync on
sync rate 60
Make matrix 1,1000,1000,20,20 : randomize matrix 1, 20
rem ---------------------------------------------
make object cube 1,30
make object sphere 2,5
color object 2, RGB(0,255,0)
rem ---------------------------------------------
do
position camera 0,object position x(1),object position y(1)+200,object position z(1)-200
point camera 0,object position x(1),object position y(1),object position z(1)
if pick object(mx,my,1,1)=1 and mouseclick()=1
objPos = 1
endif
if mouseclick()=2
objPos = 0
endif
if objPos = 1
show object 2
position object 2,object position x(1), object position y(1)+10, object position z(1)
endif
if objPos = 0
Hide object 2
endif
if objPos = 1 and mouseclick()=1 and pick object(mx,my,1,1)=1
position object 1,mx,get matrix height (1,object position x(1),object position z(1)),my
endif
rem :::::::::::::::::::::::::::::::::::
my=mousey()
mx=mousex()
mz=mousez()
set cursor 0,0
if pick object(mx,my,1,1)=1
scale object 1,50,50,50
yrotate object 1, object angle y (1)-0.9
set cursor 295,20
print "cube"
else
scale object 1,30,30,30
endif
sync
loop