modifying movement speed

Blitz3D Forums/Blitz3D Beginners Area/modifying movement speed

First of all use floats to initialise zz , bounce etc... Blitz is rounding zz up to 1 in all cases which is why the speed doesn't change.

Also, when you press the key you need to take into consideration the direction the cube is moving, otherwise it will always move upwards.

if keydown(16) zz= sgn( zz ) * .55


Not sure what you're trying to do but I'd imagine that you would want to limit the y axis movement to +-5. Instead of moveentity you may be better using

PositionEntity cube1,-10,bounce,20
PositionEntity cube2,0,bounce,20
PositionEntity cube3,10,bounce,20


Hope this helps.
Stevie