Entity Does Not Exist?!

Blitz3D Forums/Blitz3D Beginners Area/Entity Does Not Exist?!

Swefx(Posted 2005) [#1]
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.


GitTech(Posted 2005) [#2]
EntityTexture cube,texture


instead of:

EntityTexture texture,cube



Swefx(Posted 2005) [#3]
YAY! thanks mate


Neochrome(Posted 2005) [#4]
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


octothorpe(Posted 2005) [#5]
Integers are the default variable type, methinks.