salut sunt nou pe acest forum ... si nuj daca-m postat unde trebuia
Am vazut ca voi va pricepetzi si as vrea sa va intreb cum sa importez un model X cu setarile ImPut si OutPut intr-o matrice gata texturata.
Faza-i ca am incercat si tot nu m-am prins ...
Rem seteaza sync rate
Sync On
Sync Rate 30
Rem importeaza model
load object "media/scout/scout2.x",1
Rem zona Main loop
Do
Rem Store the object's Y angle in aY#
aY# = Object angle Y(1)
Rem Control input
If Upkey()=1 then Move object 1,2
If Leftkey()=1 then aY# = Wrapvalue(aY#+5)
If Rightkey()=1 then aY# = Wrapvalue(aY#-5)
Rem roteaza obiectul
Yrotate object 1,aY#
Rem Inprospatare
Sync
Loop
asa... aces cod ar trebui sa importeze un model care poate fi controlat de sagetzile de la tastatura ....
Sync On
Sync Rate 30
Rem make matrix
Make matrix 1,10000,10000,20,20
Rem texture matrix
Load image "mediaskytexture1.bmp",1
Prepare matrix texture 1,1,1,1
Fill matrix 1,0,1
Rem Make player pawn
Load image "mediaskytexture1.bmp",2
Make object sphere 10,25
Texture object 10,2
position object 10,100,0,100
rem Randomize the matrix
randomize matrix 1,125
rem Load bike sound
load music "mediasoundssoundtrack.mp3",1 : loop music 1
Rem Main loop
Do
set cursor 0,0
print screen fps()
Rem Store Object angle
AngleY# = object angle Y(10)
Rem Control input for camera
If Upkey()=1
XTest# = Newxvalue(X#,AngleY#,20)
ZTest# = Newzvalue(Z#,AngleY#,20)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
Move object 10,10
Endif
Endif
If Leftkey()=1 then Yrotate object 10,Wrapvalue(AngleY#-5)
If Rightkey()=1 then Yrotate object 10,Wrapvalue(AngleY#+5)
X# = Object position x(10)
Z# = Object position z(10)
Y# = Get Ground Height(1,X#,Z#)
Position object 10,X#,Y#+12.5,Z#
CameraZ# = Newzvalue(Z#,AngleY#-180,100)
CameraX# = Newxvalue(X#,AngleY#-180,100)
CameraY# = Get Ground Height(1,CameraX#,CameraZ#)
Position camera CameraX#,CameraY#+50,CameraZ#
Point camera X#,Y#+25,Z#
Rem Refresh Screen
Sync
Loop
Aici ar trebui sa creeze o sfera texturata care alearga printr-un matrix texturat asemanator in timp ce canta o melodie . Daca incerc sa scriu in loc de "Make Object Sphere 10,25" Load Object "mediamodel.x",1 imi da o eroare " Runtime Error 7008 - Object does exist at line 14" la linia 14 fiind scris "position object 10,100,0,100" . Daca sterg aceasta linie imi da aceeasi eroare dar la alta linie :rolleyes:

Unde credetzi ca am gresit .. sper ca n-am postat gresit si sa-mi explice careva unde am gresit .. thx :dunno:
