Hi,
I have made an Terrain with Strata Works...
But i have one problem :
I got it into the game and i got it textured.
But my Character goes true the hills ETC.
Is there an way to fix this ?
My code :
Sync On : Sync Rate 0
goto New_Game
Do
if Button(20,55,"New Game")=1 then Goto New_Game
Button(20,95,"Load Game")
If Button(20,135,"Exit")=1 then End
sync
loop
New_Game:
cls
Repeat
Text 240,220,"Get Ready to Play";
sync
Until scancode()>0
make object box 1,1,1,1
make terrain 1,"test.bmp"
load image "terrain.bmp",1
texture terrain 1,1
position terrain 1,-50,-15,0
Do
If Upkey()=1
Move Object 1,0.5
endif
If Downkey()=1
Move Object 1,-0.5
endif
If Leftkey()=1
Dec a#,0.5
endif
If Rightkey()=1
Inc a#,0.5
endif
yrotate object 1,a#
posx#=cos(270-a#) * 30 + object position x(1)
posz#=sin(270-a#) * 30 + object position z(1)
Position Camera posx#,object position y(1)+6,posz#
Point Camera object position x(1),object position y(1)+6,object position z(1)
sync
Loop
end
function Button(x1,y1,WORDS$)
Pressed=0
x2=Text Width(WORDS$)
y2=Text Height(WORDS$)
if mousex()>x1 and mousex()<x1+x2
if mousey()>y1-y2 and mousey()<y1+y2
Pressed=1
endif
endif
if pressed=1 then ink rgb(255,0,0),0 else ink rgb(255,255,255),0
if pressed=1
Pressed=Mouseclick()
else
pressed = 0
endif
text x1,y1,WORDS$
endfunction pressed
Yeah i know i used the RPG tutorial
Currently stop using Game Maker...Beginning using Dark Basic Pro