2D FONTS Scrolling?
Blitz3D Forums/Blitz3D Beginners Area/2D FONTS Scrolling?
| ||
What I am trying to do is move the 2D FONTS Scrolling( it maybe 2D but spin around in 3D) across the screen but it went too FAST !!! how can I slow them down? [CODE] Graphics3D 800, 600, 0, 2 cube = CreateCube() ScaleEntity cube, 1, 1, 0.0001 camera = CreateCamera() CameraZoom camera, 2 PositionEntity camera, 0, 0, -2 ;CameraClsColor camera, 0, 0, 255 tex = CreateTexture(512, 512) TXT$="HIYA ALL, WELCOME TO 3D WORLD OF DEMO SCENE AND WHAT U SEEING HERE IS 2D FONTS THAT SPIN AROUND IN 3D AND IT ISNT COOL....SPECAIL THANK TO BRAM" SetBuffer TextureBuffer(tex) font = LoadFont("Arial", 40) SetFont font Text 256, 256, TXT$, True, True SetBuffer BackBuffer() EntityTexture cube, tex Xpos#=700 SetBuffer BackBuffer() While Not KeyHit(1) PositionEntity cube, xpos#, 0,0 TurnEntity cube, 1, 1, 1 RenderWorld UpdateWorld Flip xpos#=xpos#-0.6 Wend [/CODE] cheers |
| ||
Nothing appeared on my screen when I ran the program? Does this happen with you? To slow it down, try adding the delay command in your main loop. |
| ||
Try this:Graphics3D 800, 600, 0, 2 cube = CreateCube() ScaleEntity cube, 1, 1, 0.0001 camera = CreateCamera() CameraZoom camera, 2 PositionEntity camera, 0, 0, -2 ;CameraClsColor camera, 0, 0, 255 tex = CreateTexture(512, 512) TXT$="HIYA ALL, WELCOME TO 3D WORLD OF DEMO SCENE AND WHAT U SEEING HERE IS 2D FONTS THAT SPIN AROUND IN 3D AND IT ISNT COOL....SPECAIL THANK TO BRAM" SetBuffer TextureBuffer(tex) font = LoadFont("Arial", 40) SetFont font Text 256, 256, TXT$, True, True SetBuffer BackBuffer() EntityTexture cube, tex Xpos#=700 SetBuffer BackBuffer() While Not KeyHit(1) PositionEntity cube, xpos#, 0,0 TurnEntity cube, 1, 1, 1 RenderWorld UpdateWorld Flip xpos#=xpos#-0.6 Wend Nothing appeared on my screen when I ran the program? Does this happen with you? To slow it down, try adding the delay command in your main loop. i got the same thing so i took out the PositionEntity cube, xpos#, 0,0 from the mainloop and it work fine. Didnt need a delay. Pretty cool code btw |