Okay guys so I’ve recorded the second in my series of polishing your games without the assistance of an artist.
In this video i talk about in game cameras. why having a camera that follows your player is not good enough and how we can make it better.
The technique i explane here is something that has been used in classic retro games for decades and it makes a static moving camera feel just a bit better by having it slow behind your character. youll notice this in old school classics platformers like mario, sonic, megaman and tonns of other classic games.
the function “Lerp” is easily ported to any language here is some pseudo code
return (start + percent*(end - start));
the function “lengthdir_x & lengthdir_y” are easily ported to any language here is some pseudo code
lengthdir_x is len * cos(degreestoradians(direction)); lengthdir_y is -len * sin(degreestoradians(direction));