What I was thinking BP_ClampValue(Value#,-2,2) would do, would be a shorter version of doing this
But it didn't do that. It didn't do anything. Here's what I tried.
Heh, do I have the wrong idea of what this function is supposed to do?
If Value < -2 Then Value = -2 If Value > 2 Then Value = 2
But it didn't do that. It didn't do anything. Here's what I tried.
Graphics3D 800,600,0,2 SetBuffer BackBuffer() Global Light = CreateLight() Global Camera = CreateCamera() PositionEntity Camera,0,2,-5 RotateEntity Camera,10,0,0 Global Cube = CreateCube() EntityColor Cube,127,127,0 EntityShininess Cube,.5 Global Clamp# = 0 While Not KeyDown(1) Clamp = Clamp + (KeyHit(200)-KeyHit(208)) BP_ClampValue(Clamp,-2,2) PositionEntity Cube,0,Clamp,0 UpdateWorld RenderWorld Text 0,0,Clamp Flip Wend End
Heh, do I have the wrong idea of what this function is supposed to do?