• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

smooth view_angle[0] while following object

L

lovareth

Guest
guys do you have a simple code for smooth view_angle[0] rotation which relative to an object direction? thanks in advance!
 

RangerX

Member
Can you describe / give more details about your issue? You have a rotating view in your game? What is it that is not smooth enough?
 
L

lovareth

Guest
oh the view is following the object using view_object[0].
 
L

lovareth

Guest
@RangerX yup i can easily use code like this:

view_object[0] = player1;
view_angle[0] = player1.direction-90;

which the player1 is the object i mentioned before. but i want the view rotates slowly/ smoothly as the player1 changing direction.
 
L

lovareth

Guest
oo never used lerp() before. i'll try to mess with lerp() functions when i'm back from work later. thanks
 
Top