Some strange behavior with DJFuegos custom sine movement
Greetings!
I've implemented the custom sine movement that DJ Fuego supplied in this thread http://community.clickteam.com/threads/54175-Custome-sine-movement
I've applied this to a platform that moves vertically, and I've encountered a strange behavior.
My game runs in fullscreen, resolution 480x270. I'm only changing the Y position of the platform.
The formula for moving the platform is
Set Y position of verticalPlatform to
initalY( "verticalPlatform" ) + 30 * Cos(2) * yTimer( "verticalPlatform" )) * 3.14
This is done in a fastloop, and in the same fastloop, yTimer is increased by 1.
This results in what appears to be a smooth sine movement up and down, but the problems arise when I stand on the platform and it makes the screen scroll up or down.
It results in a perceived feeling of the platform "stuttering" as it nears the turning point of its movement. I checked step-by-step to see if there was any actual stuttering going on, like it going up and down in a millisecond or so, but I could spot no such thing. Any idea why this is? Is it just an optical illusion?
As I mentioned, this is only noticeable when riding with the platform, not when standing still on the Y axis watching it go by.