ack, a bug already?
Blitz3D Forums/Blitz3D Beginners Area/ack, a bug already?
| ||
I've run into 2 bugs in my code, it says i can't set the graphics mode to "Graphics3D 1024,1280,32,1" also, it says my entity doesnt exhist...which is clearly does. here's my code: Graphics3D 640,480 SetBuffer BackBuffer() camera=CreateCamera() PositionEntity camera, EntityX(campiv),EntityY(campiv),EntityZ(campiv)-10 light=CreateLight() ;------------------------------------------- test=CreateCube() PositionEntity test, 0,0,0 campiv=CreatePivot() PositionEntity campiv,0,10,0 While Not KeyDown(1) RenderWorld Flip Wend End |
| ||
Try 1280x1024 ;) Also, CreateCube(), not CreateCube. Rule of thumb: Anything function thats returning a value, whether its an Int, String, entity handle, or whatever, must be called with parentheses, even if no parameters are being passed. Otherwise it'll just return 0. |
| ||
...and you never create an entity called 'pivot' which you refer to |
| ||
I just noticed the pivot problem, I added the "()" and fixed the name problem...updating code now (i discovored that the problem in the graphics is the "32,1" which doesnt make much sense, cause i've used that before and it still worked perfectly) (still doesnt work) |
| ||
^^and that! |
| ||
I'm not sure if the "entityz(campiv)-10" works even IF i get past this bug, any help on that is appreciated too. (havent coded in over a month, im kinda foggy) |
| ||
Create campiv before referring to it with EntityX/Y/Z. |
| ||
doh! forgot about that. That should do it...implimenting it now |
| ||
and there we go, thanks a lot :D |