Entity not moving?
Blitz3D Forums/Blitz3D Beginners Area/Entity not moving?
| ||
I've been making a game for my sisters and I to play (I know, sounds dumb), but lately the "moveentity" command hasn't been working. I've checked the whole program and i see nothing wrong with it. It works fine but nothing can move. I checked the "movement and rotation" tutorial and the rocket moves fine in it. Here's the code: |
| ||
normaly the Z-coordinate is used to move objects, but you use the y-ccordinate.... Also the objects normally turn around the y-coordinate... Additional you have to move your moving commands into the main loop try: While Not KeyHit(1) If KeyDown(200) Then MoveEntity fighter, 0, 0, 0.05 If KeyDown(203) Then TurnEntity fighter, 0, 1.0, 0 If KeyDown(205) Then TurnEntity figher, 0, 1.0, 0 UpdateWorld RenderWorld Flip Wend End |