I've been trying to replicate the lagging camera effect in EE&Zs scrolling engine (TGF) but there is too much extra code related to other functions (camera lock, metroid doors, PMO, etc) for me to follow exactly what is happening there.
If somebody who understands it could simply reproduce lag effect for me that would be amazing.
I have linked a mfa file containing a simple level, no code and the Player, Camera and Scroll To objects.
If anybody can help me, I will be eternally grateful! Default platform movement please. (I know it is horrible, but it will make everything easier to follow)
Always -
Set X Scroll to: X( "player" )-((X( "player" )-(X Left Frame+((X Right Frame-X Left Frame)/2)))/1.1)
Set Y Scroll to: Y( "player" )-((Y( "player" )-(Y Top Frame+((Y Bottom Frame-Y Top Frame)/2)))/1.1)
Just change "player" to the name of your active object. Hope this helps.