camera effect

Posted By: Wjbender

camera effect - 02/01/15 17:21

hi , I need some help with creating a camera effect .

The effect must be like a breathing movement but
I want to do this in code , any comments or help please ?

jb.

edit.
what I have is this at the moment ..

Code:
var mov=0
int dir=0

void camera_effect ()
{
 if (mov <=-0.3)dir=0
 if (mov>=0.3)dir=1
 if (dir==0)mov+=0.1
 if (dir==1)mov-=0.1
camera.tilt+=mov*time_step
smooth (mov,0.95)
}



is there a better way ?
Posted By: Ch40zzC0d3r

Re: camera effect - 02/01/15 17:40

sin/cos might help you here
Posted By: Wjbender

Re: camera effect - 02/01/15 20:01

thanks using sin on the values made it much better
© 2024 lite-C Forums