How to make the "camera" follow a platform character but with a smooth movement when my character stops or accelerate???
excuse my english.
For a start you can do:
----Scroll to Position X = lerp(scrollx, character.X, 0.05);
Position Y = lerp(scrolly, character.Y, 0.05);
Change de last value , in this case 0.05 to values between 0 and 1 where 0 doesn't move at all, 0.5 moves at 50% velocity, 1 moves at 100% velocity , that is, same velocity of character.
i`ll try that. <img src="smileys/smiley1.gif" border="0" align="middle" />
Great. Oh, nice avatar :D
thanks, it?s from a book i illustrate.
If you need some art or animations for your games, glad to help if i can. <img src="smileys/smiley20.gif" border="0" align="middle" />
If you want nice camera effects is it convenient to have an invisible 'camera' object which has the scroll-to behaviour.
alejo Wow great colors and line art :D Very good ! I have some nice ideas already :D~
Develop games in your browser. Powerful, performant & highly capable.
This is exactly what I wanted.
This works awesome, thank you so much - really got the jitter out of my game for small movements.
This is great thanks, I love the LERP function, simple but so effective.