Ehh, it's in the bottom topic on main forum page called 'general talk' in 'off-topic' section. Someone asked a question there for some stupid reason!
Here is code again:
box 5,5,28,28 : get image 1,0,0,32,32
sync on : sync rate 0 : autocam off
make matrix 1,2000,2000,64,64
randomize matrix 1,15
prepare matrix texture 1,1,1,1
update matrix 1
make object sphere 1,2 : color object 1,rgb(255,0,0)
position object 1,10,0,10
do
if upkey() then move object 1,1
if downkey() then move object 1,-1
if leftkey() then yrotate object 1,wrapvalue(object angle y(1)-1)
if rightkey() then yrotate object 1,wrapvalue(object angle y(1)+1)
x#=object position x(1)
z#=object position z(1)
h#=get ground height(1,x#,z#)
y#=h#+1
position object 1,x#,y#,z#
set camera to follow x#,y#,z#,object angle y(1),20,h#+2,10,0
ch#=get ground height(1,camera position x(),camera position z())
position camera camera position x(),ch#+10,camera position z()
point camera object position x(1),object position y(1),object position z(1)
sync
loop
If your mansion house needs haunting, just call Rentaghost!