Too many parameters?

Blitz3D Forums/Blitz3D Beginners Area/Too many parameters?

JapaneseGameDev3000(Posted 2016) [#1]
[Code]Graphics3D 800, 600
SetBuffer BackBuffer()

camera = CreateCamera()
CameraViewport camera, 1, 0, 0, GraphicsWidth(), GraphicsHeight() / 2

camera2=CreateCamera()

CameraViewport camera2,0,GraphicsHeight() / 2,GraphicsWidth(),GraphicsHeight() / 2

light = CreateLight()
RotateEntity light,90,0,0

scene = LoadMesh("tech demo map.3ds")
PositionEntity scene, 0, 0, 5

While Not KeyHit(1)

If KeyDown( 205 )=True Then TurnEntity camera,0,-1,0
If KeyDown( 203 )=True Then TurnEntity camera,0,1,0
If KeyDown( 208 )=True Then MoveEntity camera,0,0,-0.05
If KeyDown( 200 )=True Then MoveEntity camera,0,0,0.05

UpdateWorld
RenderWorld

Text 0, 0, "Check out my tech demo so far LISA MOJEESA!"

Flip
Wend
End
[code/]


what does the error mean? and is there something wrong with my code? I am not sure why I am getting such an error. (This is the Starting point for a tech demo I'm making). Any help is fine.

Thanks


Rick Nasher(Posted 2016) [#2]
First of all you need to use [/code] to terminate the code block.

2nd of all, you are using:
CameraViewport camera,1,0,0,GraphicsWidth(),GraphicsHeight()/2
While format is:
CameraViewport camera,x,y,width,height

So 1 parameter ",0" too much..


JapaneseGameDev3000(Posted 2016) [#3]
ignore this post my pc was acting stupid again and I posted the same thing twice by accident


JapaneseGameDev3000(Posted 2016) [#4]
Yes sorry about the wrong way I used code tags. And I have not been having that much time to look over my code but was still eager to get something done anyway, my apologies for my lack of attention lol. Anyway, I might come back because I had trouble with how the Mesh would load but on the cylinder and ground the textures are not there. I shall test the code out first though and if all of my textures are there I might not need to get back to this post.

Anyways I'll be back maybey I suppose, and thanks


JapaneseGameDev3000(Posted 2016) [#5]
Hy, my program is up and running now but for some reason certain textures are not showing (on my cylinder and ground). Also the cube that I put there seems to be missing squares. HOWEVER the cube does have a texture, basically I am talkin about a map I created in blender. And I saved it as of course a 3ds. My apologies I'm more used to 2D game desighn than 3D.


Matty(Posted 2016) [#6]
CameraViewPort - too many parameters - what is the '1' for?