Entity Does Not Exist?!
Blitz3D Forums/Blitz3D Beginners Area/Entity Does Not Exist?!
| ||
Graphics3D 800,600 SetBuffer BackBuffer() light=CreateLight() camera=CreateCamera() CameraViewport camera,0,0,800,600 Global cube=CreateCube() PositionEntity cube,0,0,5 texture=LoadTexture("a.bmp") EntityTexture texture,cube While Not KeyHit(1) TurnEntity cube,0.1,0.2,0.3 TurnEntity cube,4,5,6 UpdateWorld RenderWorld Flip Wend End I copied that straight from a tutorial but it says: " Entity does not exist" for this line of code: "EntityTexture texture,cube". I can't work out whats wrong. |
| ||
EntityTexture cube,texture instead of: EntityTexture texture,cube |
| ||
YAY! thanks mate |
| ||
also might be worth noting, that all meshes and things are integer numbers so you might want to think about using stuff like global Cube%, texture% just to ensure your getting an integer number |
| ||
Integers are the default variable type, methinks. |