I made my first kirby animation demo (
Kirby animation #001) and Nex the Fairly fast Ferret advised me to use the sin() and cos() to smooth the robotic effect of my model. I am using the interpolation method (keyframes) for you to get an Idea how and what I`m doing. The model is totally generated by the code and there is no media (except for the face).
How do I use the sin() / cos() command? To make things easy, I will not post the kirby code, all I want is an animated object swinging back and forwards using the sin() and cos() commands and interpolation (keyframes), and I can add that to my kirby model.
Here is how I animated kirby: Build on this example for the swinging object
rem setup screen
sync on
sync rate 30
backdrop on
color backdrop 0
hide mouse
rem make pendulum
make object cube 1,10
scale object 1,100,300,100
position object 1,0,0,0
color object 1,rgb(255,255,0)
rem animate pendulum
zrotate object 1,45
set object keyframe 1,0
zrotate object 1,315
set object keyframe 1,20
zrotate object 1,45
set object keyframe 1,40
rem play animation
loop object 1
rem main loop
do
rem position camera
position camera 0,0,-50
rem refresh screen
sync
rem end of main loop
loop
many thanks, TheComet
Oooooops!!! I accidentally formated drive c.