How to use "RenderWorld tween"?

Blitz3D Forums/Blitz3D Beginners Area/How to use "RenderWorld tween"?

Happy Sammy(Posted 2006) [#1]
Hi all,

I usually use "RenderWorld" only.
How to use "RenderWorld tween"?

Thanks in advance.
Sammy
:)


WolRon(Posted 2006) [#2]
tweening applies to animating. Any value less than one passed as a tween value, will only animate the world up to that percentage (i.e. 0.5=50%)


Happy Sammy(Posted 2006) [#3]
Hi WolRon,

Why and when there is a need to change this value?

Thanks in advance.
Sammy
:)


WolRon(Posted 2006) [#4]
As the help documentation says...
If you wish to display more frames of animation than 'logic' updates, you can use tweening.

For instance:
Say your game only requires it's logic to be updated 30 times a second, but the video card is capable of updating the screen 60 times a second. You can use frame tweening to draw 30 full frames and 30 half frames of animation in between each of the 30 full frames. At only every full frame of animation your game would execute it's logic code.

This produces a smoother looking game that executes its logic at a slower rate.


OJay(Posted 2006) [#5]
see also Commented 3D game framework for a nice framework to start with