Help, error!
Blitz3D Forums/Blitz3D Programming/Help, error!
| ||
Hello, i was creating an basic little room on Blitz3D and when i finished the code, saved, and scanned for errors, this message appeared: ``not enough parameters´´ Can you guys say me what´s wrong please? (note: i am a begginer at Blitz3D.) Sorry for my english |
| ||
We can't tell you what is wrong if we can't see your code. Post your code here, and maybe we could help you. |
| ||
sorry, i forgot to CTRL V the code :P Graphics3D 800,600 SetBuffer BackBuffer() HidePointer centroX=GraphicsWidth()/2 centroY=GraphicsHeight()/2 cuboSolido=1 paredeSolido=2 Collisions cuboSolido,paredeSolido,2,2 MoveMouse centroX,centroY camera=CreateCamera() PositionEntity camera,0,10,-10 CameraRange camera,0.1,300 luz=CreateLight() cubo=CreateCube() EntityColor cubo,255,100,50 EntityType cubo,cuboSolido cenario=CreateCube() ScaleEntity cenario,10,1,10 PositionEntity cenario,0,-2,0 paredes=CreateCube() ScaleEntity paredes,10,10,10 EntityColor paredes,0,0,150 FlipMesh paredes EntityType paredes,paredeSolido While Not KeyHit(1) ;para frente If KeyDown(200) Then MoveEntity cubo,0,0, 0.2 EndIf ;para traz If KeyDown(208) Then MoveEntity cubo,0,0, -0.2 EndIf ;rotaciona para a esquerda If KeyDown(203) Then TurnEntity cubo,0,1,0 EndIf ;rotationa para a direita If KeyDown (205) Then TurnEntity cubo,0,-1,0 EndIf TurnEntity cubo,0,-MouseXSpeed(),0 TurnEntity camera,MouseYSpeed(),0,0 PositionEntity camera,EntityX(cubo),EntityY(cubo),EntityZ(cubo) RotateEntity camera,EntityPitch(camera),EntityYaw(cubo) MoveMouse centroX,centroY UpdateWorld RenderWorld Flip Wend |
| ||
The debuger should highlight the line which is causing the issue. I think it's this one .. RotateEntity camera,EntityPitch(camera),EntityYaw(cubo) You're missing the roll parameter .. either set it to zero like so .. RotateEntity camera,EntityPitch(camera),EntityYaw(cubo),0 Or something like .. RotateEntity camera,EntityPitch(camera),EntityYaw(cubo),EntityRoll( camera) |