my fisrt project

Blitz3D Forums/Blitz3D Beginners Area/my fisrt project

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You still have a lot of commands written, that do exactly nothing.

Delete (or change) the following lines:
X#=0
Y#=0
Z#=0

player=CreatePivot()

MoveEntity box,X#,Y#,Z#

EntityRadius box,box_radius# ;no need to call this every frame, it's faster you put this ABOVE your main loop.

EntityRadius terrain,terrain_radius# ;Terrain's collision-sphere isn't used for collisions... and terrain_radius# has not been initialised and has, for that reason, a value of 0

If KeyDown( 32 )=True Then TurnEntity camera,0,-.0,0
If KeyDown( 30 )=True Then TurnEntity camera,0,.0,0
If KeyDown( 31 )=True Then MoveEntity camera,0,0,-0.00
If KeyDown( 17 )=True Then MoveEntity camera,0,0,0.00

RenderWorld tween ;why "tween"? use normal renderworld, you have no initialised variable called "tween", you would need one for frame-tweening... just write "Renderworld" alone, it does exactly the same in this case...

FreeEntity(box)

FreeEntity(terrain)

ClearWorld(box,terrain,Grass ) ;this is not the right parameters... you would have to give the parameters (true, true, true) to this function, but as this is already default, just "ClearWorld" is enough...


mfg Raitsun